(self, zoom: int, scheme: str, bounds: Bounds)
* Sets the current extent of the QGIS map canvas to the specified bounds
        :return:
* Sets the current extent of the QGIS map canvas to the specified bounds
        :return:
* Sets the current extent of the QGIS map canvas to the specified bounds : return :
def _set_qgis_extent(self, zoom: int, scheme: str, bounds: Bounds):
        """
         * Sets the current extent of the QGIS map canvas to the specified bounds
        :return: 
        """
        min_xy = tile_to_latlon(zoom, bounds.x_min(), bounds.y_min(), scheme=scheme)
        max_xy = tile_to_latlon(zoom, bounds.x_max(), bounds.y_max(), scheme=scheme)
        min_pos = convert_coordinate("900913", str(self._get_qgis_crs()), lat=min_xy[1], lng=min_xy[0])
        max_pos = convert_coordinate("900913", self._get_qgis_crs(), lat=min_xy[1], lng=max_xy[0])

        map_min_pos = QgsPointXY(min_pos[0], min_pos[1])
        map_max_pos = QgsPointXY(max_pos[0], max_pos[1])
        rect = QgsRectangle(map_min_pos, map_max_pos)
        self.iface.mapCanvas().setExtent(rect)
        self.iface.mapCanvas().refresh()
def _set_qgis_extent ( self , zoom : int , scheme : str , bounds : Bounds ) : min_xy = tile_to_latlon ( zoom , bounds . x_min ( ) , bounds . y_min ( ) , scheme = scheme ) max_xy = tile_to_latlon ( zoom , bounds . x_max ( ) , bounds . y_max ( ) , scheme = scheme ) min_pos = convert_coordinate ( "900913" , str ( self . _get_qgis_crs ( ) ) , lat = min_xy [ 1 ] , lng = min_xy [ 0 ] ) max_pos = convert_coordinate ( "900913" , self . _get_qgis_crs ( ) , lat = min_xy [ 1 ] , lng = max_xy [ 0 ] ) map_min_pos = QgsPointXY ( min_pos [ 0 ] , min_pos [ 1 ] ) map_max_pos = QgsPointXY ( max_pos [ 0 ] , max_pos [ 1 ] ) rect = QgsRectangle ( map_min_pos , map_max_pos ) self . iface . mapCanvas ( ) . setExtent ( rect ) self . iface . mapCanvas ( ) . refresh ( )