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)
def __init__( self, **kwargs ): ## get the Radius of Influence for the Barnes Analysis Projection.__init__( self, **kwargs ) self.RoI = kwargs.get( 'RoI', 80000 )
def __init__(self, **kwargs): ## get the Radius of Influence for the Barnes Analysis Projection.__init__(self, **kwargs) self.RoI = kwargs.get('RoI', 80000)