Exemple #1
0
    def get_legends(self):
        if self.ctx.multivalued:
            def value_li(de):
                return HTML.label(
                    map_marker_img(self.req, de),
                    literal(de.abbr),
                    style='margin-left: 1em; margin-right: 1em;')

            yield Legend(self, 'values', map(value_li, self.ctx.domain), label='Legend')

        for legend in super(FeatureMap, self).get_legends():
            yield legend

        yield FilterLegend(self, 'APICS.getLexifier', col=self.col, dt=self.dt)
Exemple #2
0
 def get_legends(self):
     yield FilterLegend(
         self,
         '',
         col='name',
         dt=FLanguages(self.req, common.Language))
Exemple #3
0
 def get_legends(self):
     for legend in super(SamplesMap, self).get_legends():
         if legend.name == 'layers':
             legend.label = 'Panels'
         yield legend
     yield FilterLegend(self, 'GELATO.getFamily', col=self.col, dt=self.dt)
Exemple #4
0
 def get_legends(self):
     for legend in super(VarietiesMap, self).get_legends():
         yield legend
     yield FilterLegend(self, 'EWAVE.getType', col=self.col, dt=self.dt)
Exemple #5
0
    def get_legends(self):
        for legend in Map.get_legends(self):
            yield legend

        yield FilterLegend(self, 'SAILS.getFamily', col=self.col, dt=self.dt)