Im newbie in python, so excuse me for this newbie question. I have a class and a function:
class Datasource(mapnik.PythonDatasource):
def __init__(self):
super(Datasource, self).__init__()
def features(self, query):
return mapnik.PythonDatasource.wkb_features(mvt)
def tileLayer(request, version, shapefile_id, zoom, x, y):
mvt = requestHandler(request, zoom, x, y)
datasource = mapnik.Python(factory='Datasource')
How can I pass the mvt
variable to the Datasource
class when calling mapnik.Python(factory='Datasource')