From: Fredrik Unger Date: Wed, 17 Oct 2012 13:28:39 +0000 (+0200) Subject: Removing StaticOpenStreetMap building real addresses X-Git-Url: https://source.tree.se/git?p=treecutter.git;a=commitdiff_plain;h=9326578627f1f3b91de54304713d04078cf2c280 Removing StaticOpenStreetMap building real addresses Instead of concentrating on OpenStreetMap we rebuild the class to do addresses with coordinates and the occational picture if needed. --- diff --git a/xinclude/address.py b/xinclude/address.py index 4ae59df..fd5fe96 100755 --- a/xinclude/address.py +++ b/xinclude/address.py @@ -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