示例#1
0
    def __init__(self,
                 parent,
                 lat=32.10932741542229,
                 lon=34.89818882620658,
                 zoom=15):
        super().__init__(parent)
        Projection.__init__(self)
        Tiles.__init__(self, self.tileRetrieved)
        self.recentre(lat, lon, zoom)
        self.drag = False
        self.dragStartCoords = (0, 0)
        self.layers = []
        self.Bind(wx.EVT_SIZE, self.sizeChanged)
        self.Bind(wx.EVT_PAINT, self.updatePanel)
        self.Bind(wx.EVT_MOUSEWHEEL, self.scroll_event)

        self.Bind(wx.EVT_LEFT_DOWN, self.click)
        self.Bind(wx.EVT_LEFT_UP, self.release)
        self.Bind(wx.EVT_MOTION, self.mousemove)

        self.Bind(wx.EVT_MOUSEWHEEL, self.scroll_event)
        size = self.GetSize()
        self.mousePosition = wx.Point(size.GetWidth() / 2,
                                      size.GetHeight() / 2)

        self.SetBackgroundStyle(wx.BG_STYLE_PAINT)
示例#2
0
文件: gridmaker.py 项目: es5nhc/AWIDS
 def __init__( self, **kwargs ):
   ## get the Radius of Influence for the Barnes Analysis
   Projection.__init__( self, **kwargs )
   self.RoI = kwargs.get( 'RoI', 80000 )
示例#3
0
 def __init__(self, **kwargs):
     ## get the Radius of Influence for the Barnes Analysis
     Projection.__init__(self, **kwargs)
     self.RoI = kwargs.get('RoI', 80000)