kopia lustrzana https://github.com/hholzgra/maposmatic/
add API support for indexer, logo and extra_logo
rodzic
6d4fcacdae
commit
d8a9c87d60
|
@ -239,6 +239,8 @@ def _jobs_post(request):
|
|||
'bbox_left',
|
||||
'bbox_right',
|
||||
'bbox_top',
|
||||
'extra_logo',
|
||||
'indexer',
|
||||
'min_lat',
|
||||
'max_lat',
|
||||
'min_lon',
|
||||
|
@ -246,6 +248,7 @@ def _jobs_post(request):
|
|||
'import_urls',
|
||||
'language',
|
||||
'layout',
|
||||
'logo',
|
||||
'orientation',
|
||||
'overlays',
|
||||
'paper_height',
|
||||
|
@ -301,6 +304,15 @@ def _jobs_post(request):
|
|||
else:
|
||||
job.overlay = ",".join(input['overlays'])
|
||||
|
||||
if 'indexer' in input:
|
||||
job.indexer = input['indexer']
|
||||
|
||||
if 'logo' in input:
|
||||
job.logo = input['logo']
|
||||
|
||||
if 'extra_logo' in input:
|
||||
job.extra_logo = input['extra_logo']
|
||||
|
||||
job.paper_width_mm = 210
|
||||
job.paper_height_mm = 297
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ class MapRenderingJob(models.Model):
|
|||
stylesheet = models.CharField(max_length=256)
|
||||
overlay = models.CharField(max_length=256, null=True, blank=True)
|
||||
layout = models.CharField(max_length=256)
|
||||
indexer = models.CharField(max_length=256, null=True)
|
||||
indexer = models.CharField(max_length=256, null=True, default='Street')
|
||||
paper_width_mm = models.IntegerField()
|
||||
paper_height_mm = models.IntegerField()
|
||||
bitmap_dpi = models.IntegerField(default=72)
|
||||
|
|
Ładowanie…
Reference in New Issue