(self, constraints=None, maxzoom=1e6)
Set the navigation constraints.
        
        Arguments:
          * constraints=None: the coordinates of the bounding box as 
            (xmin, ymin, xmax, ymax), by default (+-1).
Set the navigation constraints.
        
        Arguments:
          * constraints=None: the coordinates of the bounding box as 
            (xmin, ymin, xmax, ymax), by default (+-1).
Set the navigation constraints . Arguments : * constraints = None : the coordinates of the bounding box as ( xmin ymin xmax ymax ) by default ( + - 1 ) .
def set_navigation_constraints(self, constraints=None, maxzoom=1e6):
        """Set the navigation constraints.
        
        Arguments:
          * constraints=None: the coordinates of the bounding box as 
            (xmin, ymin, xmax, ymax), by default (+-1).
        
        """
        if not constraints:
            constraints = MAX_VIEWBOX
        # view constraints
        self.xmin, self.ymin, self.xmax, self.ymax = constraints
        # minimum zoom allowed
        self.sxmin = 1./min(self.xmax, -self.xmin)
        self.symin = 1./min(self.ymax, -self.ymin)
        # maximum zoom allowed
        self.sxmax = self.symax = maxzoom
def set_navigation_constraints ( self , constraints = None , maxzoom = 1e6 ) : if not constraints : constraints = MAX_VIEWBOX # view constraints self . xmin , self . ymin , self . xmax , self . ymax = constraints # minimum zoom allowed self . sxmin = 1. / min ( self . xmax , - self . xmin ) self . symin = 1. / min ( self . ymax , - self . ymin ) # maximum zoom allowed self . sxmax = self . symax = maxzoom