6.91. sibl_gui.components.addons.gpsMap.views

views.py

Platform:
Windows, Linux, Mac Os X.
Description:
This module defines the sibl_gui.components.core.collectionsOutliner.collectionsOutliner.CollectionsOutliner Component Interface class Views.

Others:

6.91.1. Module Attributes

sibl_gui.components.addons.gpsMap.views.LOGGER

6.91.2. Classes

class sibl_gui.components.addons.gpsMap.views.Map_QWebView(parent=None)[source]

Bases: PyQt4.QtWebKit.QWebView

This class is 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.
Parameters:parent – Object parent. ( QObject )
addMarker(coordinates, title, icon, content)[source]

This method adds a marker to the GPS map.

Parameters:
  • coordinates – Marker coordinates. ( Tuple )
  • title – Marker title. ( String )
  • icon – Marker icon. ( String )
  • content – Marker popup window content. ( String )
Returns:

Method success. ( Boolean )

removeMarkers()[source]

This method removes the GPS map markers.

Returns:Method success. ( Boolean )
setCenter()[source]

This method centers the GPS map.

Returns:Method success. ( Boolean )
setMapType(mapTypeId)[source]

This method sets the GPS map type.

Available map types:

  • MapTypeId.auto
  • MapTypeId.aerial
  • MapTypeId.road
Parameters:mapTypeId – GPS map type. ( String )
Returns:Method success. ( Boolean )
setZoom(type)[source]

This method sets the GPS map zoom.

Parameters:type – Zoom type. ( String )
Returns:Method success. ( Boolean )