Changeset 03de6ba


Ignore:
Timestamp:
03/24/12 10:32:45 (2 years ago)
Author:
xkolman2 <xkolman2@…>
Branches:
master
Children:
dd45fdf
Parents:
c2ca10f
git-author:
xkolman2 <xkolman2@…> (03/24/12 10:32:45)
git-committer:
xkolman2 <xkolman2@…> (03/24/12 10:32:45)
Message:

fix typos

git-svn-id: https://nlp.fi.muni.cz/svn/gps_navigace/trunk@701 0858a4d0-ffff-46e5-938e-62b5ecb34222

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/mod_mapTiles.py

    rc2ca10f r03de6ba  
    231231  def _startIdleTileLoader(self): 
    232232    """add the tile loader as a gobject mainloop idle callback""" 
    233     if not self.idleLoaderActive: # one idle loader is enought 
     233    if not self.idleLoaderActive: # one idle loader is enough 
    234234      self.idleLoaderActive = True 
    235235      gobject.idle_add(self._idleTileLoaderCB) 
    236236 
    237237  def _idleTileLoaderCB(self): 
    238     """get loading requests from the circual stack, 
     238    """get loading requests from the circular stack, 
    239239    quit when the stack is empty""" 
    240240    try: 
     
    248248        self.loadImage(name, x, y, z, layer) 
    249249#        print "loaded" 
    250         return True # dont stop the idle handle 
     250        return True # don't stop the idle handle 
    251251      else: 
    252252#        print "quiting" 
     
    271271  def update(self): 
    272272    """monitor if the automatic tile downloads finished and then remove them from the dictionary 
    273     (also automagicaly refreshes the screen once new tiles are available, even when not centered)""" 
     273    (also automagically refreshes the screen once new tiles are available, even when not centered)""" 
    274274 
    275275    currentTime = time.time() 
     
    324324    """Draw map tile images""" 
    325325    try: # this should get rid of a fair share of the infamous "black screens" 
    326       # get all neded data and objects to local variables 
     326      # get all needed data and objects to local variables 
    327327      proj = self.m.get('projection', None) 
    328328      drawImage = self.drawImage # method binding to speed up method lookup 
     
    348348        (sx,sy,sw,sh) = self.get('viewport') # get screen parameters 
    349349 
    350         # adjust left corner cordinates if centering shift is on 
     350        # adjust left corner coordinates if centering shift is on 
    351351        (shiftX,shiftY) = self.modrana.centerShift 
    352352        sx = -shiftX 
     
    359359          cleanProjectionCoords = (px1,px2,py1,py2) # we need the unmodified coords for later use 
    360360        else: 
    361           # we use tiles from an upper zl and strech them over a lower zl 
     361          # we use tiles from an upper zl and stretch them over a lower zl 
    362362          (px1,px2,py1,py2) = proj.findEdgesForZl(z, scale) 
    363363          cleanProjectionCoords = (px1,px2,py1,py2) # wee need the unmodified coords for later use 
     
    417417          v4 = rectangles.Vector(*p4.as_tuple()) 
    418418 
    419           # enlage the area of possibly visible tiles due to rotation 
     419          # enlarge the area of possibly visible tiles due to rotation 
    420420          add = self.modrana.expandViewportTiles 
    421421          (px1,px2,py1,py2) = (px1-add,px2+add,py1-add,py2+add) 
     
    807807         Therefore we use it as default.""" 
    808808 
    809       # Tile images are mostly 256 by 256 px, we dont need to check the size 
     809      # Tile images are mostly 256 by 256 px, we don't need to check the size 
    810810      x = 256 
    811811      y = 256 
Note: See TracChangeset for help on using the changeset viewer.