6.98. sibl_gui.components.addons.gpsMap.views
views.py
- Platform:
- Windows, Linux, Mac Os X.
- Description:
- Defines
the sibl_gui.components.core.collectionsOutliner.collectionsOutliner.CollectionsOutliner Component
Interface class Views.
Others:
6.98.1. Module Attributes
-
sibl_gui.components.addons.gpsMap.views.LOGGER
6.98.2. Classes
-
class sibl_gui.components.addons.gpsMap.views.Map_QWebView(parent=None)[source]
Bases: PyQt4.QtWebKit.QWebView
Defines a
QWebView subclass used for the GPS map.
It provides various methods to manipulate the
Microsoft Bing Maps defined
in the Component resources html file through Javascript evaluation.
Initializes the class.
Parameters: | parent (QObject) – Object parent. |
-
addMarker(coordinates, title, icon, content)[source]
Adds a marker to the GPS map.
Parameters: |
- coordinates (tuple) – Marker coordinates.
- title (unicode) – Marker title.
- icon (unicode) – Marker icon.
- content (unicode) – Marker popup window content.
|
Returns: | Method success.
|
Return type: | bool
|
-
removeMarkers()[source]
Removes the GPS map markers.
Returns: | Method success. |
Return type: | bool |
-
setCenter()[source]
Centers the GPS map.
Returns: | Method success. |
Return type: | bool |
-
setMapType(mapTypeId)[source]
Sets the GPS map type.
Available map types:
- MapTypeId.auto
- MapTypeId.aerial
- MapTypeId.road
Parameters: | mapTypeId (unicode) – GPS map type. |
Returns: | Method success. |
Return type: | bool |
-
setZoom(type)[source]
Sets the GPS map zoom.
Parameters: | type (unicode) – Zoom type. |
Returns: | Method success. |
Return type: | bool |