Class MapView
Definition
- Namespace:
- Tizen.Maps
- Assembly:
- Tizen.Maps.dll
- API Level:
- 3
Map View class to show a map on the screen.
C#Copypublic class MapView : Layout, IAccessibleObject, IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
MapView(EvasObject, MapService)
Creates a view and links it to the instance of a map service.
Declaration
C#Copypublic MapView(EvasObject parent, MapService service)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | An instance of EvasObject object for which a map view will be drawn. |
MapService | service | An instance of MapService object. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
UnauthorizedAccessException | Thrown when application does not have some privilege to access this method. |
System.ArgumentException | Thrown when parameters are invalid. |
InvalidOperationException | Thrown when a native operation failed to allocate memory, and connect to the service. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/mapservice
Properties
Declaration
C#Copypublic bool BuildingsEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
UnauthorizedAccessException | Thrown when application does not have some privilege to access this method. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/mapservicehttp://tizen.org/privilege/internethttp://tizen.org/privilege/network.get
Declaration
C#Copypublic Geocoordinates Center { get; set; }
Property Value
Type | Description |
---|---|
Geocoordinates |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
UnauthorizedAccessException | Thrown when application does not have some privilege to access this method. |
System.ArgumentException | Thrown when the value is invalid. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/mapservicehttp://tizen.org/privilege/internethttp://tizen.org/privilege/network.get
Declaration
C#Copypublic IEnumerable<MapObject> Children { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<MapObject> |
API Level: 3
Declaration
C#Copypublic string Language { get; set; }
Property Value
Type | Description |
---|---|
System.String | The display language in the map. A language is specified as an ISO 3166 alpha-2 two letter country-code followed by ISO 639-1 for the two-letter language code. Each language tag is composed of one or more "subtags" separated by hyphens (-). Each subtag is composed of basic Latin letters or digits only. For example, "ko-KR" for Korean, "en-US" for American English. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
UnauthorizedAccessException | Thrown when application does not have some privilege to access this method. |
System.ArgumentException | Thrown when the value is invalid. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/mapservicehttp://tizen.org/privilege/internethttp://tizen.org/privilege/network.get
Declaration
C#Copypublic MapTypes MapType { get; set; }
Property Value
Type | Description |
---|---|
MapTypes |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
UnauthorizedAccessException | Thrown when application does not have some privilege to access this method. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/mapservicehttp://tizen.org/privilege/internethttp://tizen.org/privilege/network.get
Declaration
C#Copypublic int MaximumZoomLevel { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | It is an integer value that limits maximum zoom level within a range of the current map plug-in support. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
UnauthorizedAccessException | Thrown when application does not have some privilege to access this method. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/mapservicehttp://tizen.org/privilege/internethttp://tizen.org/privilege/network.get
Declaration
C#Copypublic int MinimumZoomLevel { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | It is an integer value that limits minimal zoom level within a range of the current map plug-in support. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
UnauthorizedAccessException | Thrown when application does not have some privilege to access this method. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/mapservicehttp://tizen.org/privilege/internethttp://tizen.org/privilege/network.get
Declaration
C#Copypublic double Orientation { get; set; }
Property Value
Type | Description |
---|---|
System.Double | It is an integer value from 0 to 360 that indicates the orientation of the map view. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
UnauthorizedAccessException | Thrown when application does not have some privilege to access this method. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/mapservicehttp://tizen.org/privilege/internethttp://tizen.org/privilege/network.get
Declaration
C#Copypublic bool PublicTransitEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
UnauthorizedAccessException | Thrown when application does not have some privilege to access this method. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/mapservicehttp://tizen.org/privilege/internethttp://tizen.org/privilege/network.get
Declaration
C#Copypublic bool ScaleBarEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
UnauthorizedAccessException | Thrown when application does not have some privilege to access this method. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/mapservicehttp://tizen.org/privilege/internethttp://tizen.org/privilege/network.get
Declaration
C#Copypublic bool TrafficEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
UnauthorizedAccessException | Thrown when application does not have some privilege to access this method. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/mapservicehttp://tizen.org/privilege/internethttp://tizen.org/privilege/network.get
Declaration
C#Copypublic int ZoomLevel { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | It is an integer value representing the current zoom level. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
UnauthorizedAccessException | Thrown when application does not have some privilege to access this method. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/mapservicehttp://tizen.org/privilege/internethttp://tizen.org/privilege/network.get
Methods
Declaration
C#Copypublic void Add(MapObject child)
Parameters
Type | Name | Description |
---|---|---|
MapObject | child | An instance of the map object to be added. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
UnauthorizedAccessException | Thrown when application does not have some privilege to access this method. |
System.ArgumentException | Thrown when the value is invalid. |
InvalidOperationException | Thrown when a native operation failed to allocate memory and connect to the service. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/mapservice
Declaration
C#Copypublic void CaptureSnapshot(SnapshotType type, int quality, string path)
Parameters
Type | Name | Description |
---|---|---|
SnapshotType | type | Type of file format. |
System.Int32 | quality | An integer value representing the quality for encoding from 1 to 100. |
System.String | path | A string representing the file path for a snapshot. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
UnauthorizedAccessException | Thrown when application does not have some privilege to access this method. |
System.ArgumentException | Thrown when the value is invalid. |
InvalidOperationException | Thrown when a native operation failed to allocate memory and connect to the service. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/mapservice
Declaration
C#Copypublic void Dispose()
API Level: 3
Dispose(Boolean)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed. |
API Level: 3
Declaration
C#Copyprotected void Finalize()
GeolocationToScreen(Geocoordinates)
Changes the geographical coordinates to screen coordinates.
Declaration
C#Copypublic Point GeolocationToScreen(Geocoordinates coordinates)
Parameters
Type | Name | Description |
---|---|---|
Geocoordinates | coordinates | Geographical coordinates. |
Returns
Type | Description |
---|---|
Point | Returns an instance of the screen coordinates on the current screen. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
UnauthorizedAccessException | Thrown when application does not have some privilege to access this method. |
System.ArgumentException | Thrown when the value is invalid. |
InvalidOperationException | Thrown when a native operation failed to allocate memory and connect to the service. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/mapservice
Declaration
C#Copypublic void Remove(MapObject child)
Parameters
Type | Name | Description |
---|---|---|
MapObject | child | An instance of the map object to be removed. |
Remarks
Once removed, the child object will be become invalid.
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
UnauthorizedAccessException | Thrown when application does not have some privilege to access this method. |
System.ArgumentException | Thrown when the value is invalid. |
InvalidOperationException | Thrown when native operation failed to allocate memory and connect to the service. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/mapservice
Declaration
C#Copypublic void RemoveAll()
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
UnauthorizedAccessException | Thrown when application does not have some privilege to access this method. |
InvalidOperationException | Thrown when a native operation failed to allocate memory and connect to the service. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/mapservice
Declaration
C#Copypublic Geocoordinates ScreenToGeolocation(Point screenCoordinates)
Parameters
Type | Name | Description |
---|---|---|
Point | screenCoordinates | Screen coordinates. |
Returns
Type | Description |
---|---|
Geocoordinates | Returns an instance of the geographical coordinates object. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
UnauthorizedAccessException | Thrown when application does not have some privilege to access this method. |
System.ArgumentException | Thrown when the value is invalid. |
InvalidOperationException | Thrown when a native operation failed to allocate memory and connect to the service. |
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/mapservice
Events
Declaration
C#Copypublic event EventHandler<MapGestureEventArgs> Clicked
Event Type
Type | Description |
---|---|
System.EventHandler<MapGestureEventArgs> | Event handlers to get a clicked gesture event. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
API Level: 3
Declaration
C#Copypublic event EventHandler<MapGestureEventArgs> DoubleClicked
Event Type
Type | Description |
---|---|
System.EventHandler<MapGestureEventArgs> | Event handlers to get a double-clicked gesture event. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
API Level: 3
Declaration
C#Copypublic event EventHandler<MapGestureEventArgs> LongPressed
Event Type
Type | Description |
---|---|
System.EventHandler<MapGestureEventArgs> | Event handlers to get a long-pressed gesture event. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
API Level: 3
Declaration
C#Copypublic event EventHandler<MapGestureEventArgs> Scrolled
Event Type
Type | Description |
---|---|
System.EventHandler<MapGestureEventArgs> | Event handlers to get a scrolled gesture event. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
API Level: 3
TwoFingerClicked
Adds or removes event handlers to deliver a clicked gesture event with two-fingers.
Declaration
C#Copypublic event EventHandler<MapGestureEventArgs> TwoFingerClicked
Event Type
Type | Description |
---|---|
System.EventHandler<MapGestureEventArgs> | Event handlers to get a clicked gesture event. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
API Level: 3
Declaration
C#Copypublic event EventHandler<MapGestureEventArgs> TwoFingerRotated
Event Type
Type | Description |
---|---|
System.EventHandler<MapGestureEventArgs> | Event handlers to get a rotated gesture event. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
API Level: 3
Declaration
C#Copypublic event EventHandler<MapGestureEventArgs> TwoFingerZoomed
Event Type
Type | Description |
---|---|
System.EventHandler<MapGestureEventArgs> | Event handlers to get a zoomed gesture event. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |
API Level: 3
ViewReady
Adds or removes event handlers to deliver an event representing a view ready to be used.
Declaration
C#Copypublic event EventHandler ViewReady
Event Type
Type | Description |
---|---|
System.EventHandler | Event handlers to get a view ready event. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | Thrown when the required feature is not supported. |