Removing StaticOpenStreetMap building real addresses
authorFredrik Unger <fred@tree.se>
Wed, 17 Oct 2012 13:28:39 +0000 (15:28 +0200)
committerFredrik Unger <fred@tree.se>
Wed, 17 Oct 2012 13:28:39 +0000 (15:28 +0200)
Instead of concentrating on OpenStreetMap we rebuild the class
to do addresses with coordinates and the occational picture if needed.

xinclude/address.py

index 4ae59df068161e07dba7e09829a2be8565e752fd..fd5fe9664d7d30ff031343129ba796c45c251709 100755 (executable)
@@ -24,22 +24,6 @@ TS = 256
 
 h = Http(".cache")
 
-class StaticOpenStreetMap(object):
-    """Setting up a static image from OSM with one or more markers"""
-    def __init__(self):
-        self._zoom = 0
-        self._width = 0
-        self._height = 0
-        self._markers = []
-        self._maptype = 'mapnik'
-
-    def add_marker(lon,lat):
-        self._markers.append((lon,lat))
-
-#    def construct_map(self):
-#        for coord in self._markers:
-#            print coord
-
 def lontile(lon, zoom):
     tile = ((lon + 180) / 360) * (2**zoom)
     return tile