Package madrona :: Package layer_manager :: Module models :: Class Layer
[hide private]

Class Layer

source code

django.db.models.Model --+
                         |
                        Layer

Instance Methods [hide private]
 
__unicode__(self) source code
 
calculate_url(self) source code
 
is_parent(self) source code
 
parent(self) source code
 
slug(self) source code
 
data_overview_text(self) source code
 
data_source_text(self) source code
 
data_notes_text(self) source code
 
bookmark_link(self) source code
 
data_download_link(self) source code
 
metadata_link(self) source code
 
source_link(self) source code
 
learn_link(self) source code
 
description_link(self) source code
 
tooltip(self) source code
 
serialize_attributes(self) source code
 
serialize_lookups(self) source code
 
toDict(self) source code
Class Variables [hide private]
  TYPE_CHOICES = 'XYZ', 'XYZ', ('WMS', 'WMS'), ('ArcRest', 'ArcR...
  name = models.CharField(max_length= 100)
  layer_type = models.CharField(max_length= 50, choices= TYPE_CH...
  url = models.CharField(max_length= 255, blank= True, null= True)
  arcgis_layers = models.CharField(max_length= 255, blank= True,...
  subdomains = models.CharField(max_length= 255, blank= True, nu...
  sublayers = models.ManyToManyField('self', blank= True, null= ...
  themes = models.ManyToManyField("Theme", blank= True, null= True)
  is_sublayer = models.BooleanField(default= False)
  legend = models.CharField(max_length= 255, blank= True, null= ...
  legend_title = models.CharField(max_length= 255, blank= True, ...
  legend_subtitle = models.CharField(max_length= 255, blank= Tru...
  utfurl = models.CharField(max_length= 255, blank= True, null= ...
  default_on = models.BooleanField(default= False)
  description = models.TextField(blank= True, null= True)
  data_overview = models.TextField(blank= True, null= True)
  data_status = models.CharField(max_length= 255, blank= True, n...
  data_source = models.CharField(max_length= 512, blank= True, n...
  data_notes = models.TextField(blank= True, null= True)
  bookmark = models.CharField(max_length= 755, blank= True, null...
  map_tiles = models.CharField(max_length= 255, blank= True, nul...
  kml = models.CharField(max_length= 255, blank= True, null= True)
  data_download = models.CharField(max_length= 255, blank= True,...
  learn_more = models.CharField(max_length= 255, blank= True, nu...
  metadata = models.CharField(max_length= 255, blank= True, null...
  fact_sheet = models.CharField(max_length= 255, blank= True, nu...
  source = models.CharField(max_length= 512, blank= True, null= ...
  thumbnail = models.URLField(max_length= 255, blank= True, null...
  EVENT_CHOICES = 'click', 'click', ('mouseover', 'mouseover')
  attribute_title = models.CharField(max_length= 255, blank= Tru...
  attribute_fields = models.ManyToManyField('AttributeInfo', bla...
  compress_display = models.BooleanField(default= False)
  attribute_event = models.CharField(max_length= 35, choices= EV...
  lookup_field = models.CharField(max_length= 255, blank= True, ...
  lookup_table = models.ManyToManyField('LookupInfo', blank= Tru...
  vector_color = models.CharField(max_length= 7, blank= True, nu...
  vector_fill = models.FloatField(blank= True, null= True)
  vector_graphic = models.CharField(max_length= 255, blank= True...
  opacity = models.FloatField(default=.5, blank= True, null= True)
Method Details [hide private]

calculate_url(self)

source code 
Decorators:
  • @property

is_parent(self)

source code 
Decorators:
  • @property

parent(self)

source code 
Decorators:
  • @property

slug(self)

source code 
Decorators:
  • @property

data_overview_text(self)

source code 
Decorators:
  • @property

data_source_text(self)

source code 
Decorators:
  • @property

data_notes_text(self)

source code 
Decorators:
  • @property

bookmark_link(self)

source code 
Decorators:
  • @property

data_download_link(self)

source code 
Decorators:
  • @property

metadata_link(self)

source code 
Decorators:
  • @property

source_link(self)

source code 
Decorators:
  • @property

learn_link(self)

source code 
Decorators:
  • @property

description_link(self)

source code 
Decorators:
  • @property

tooltip(self)

source code 
Decorators:
  • @property

serialize_attributes(self)

source code 
Decorators:
  • @property

serialize_lookups(self)

source code 
Decorators:
  • @property

toDict(self)

source code 
Decorators:
  • @property

Class Variable Details [hide private]

TYPE_CHOICES

Value:
'XYZ', 'XYZ', ('WMS', 'WMS'), ('ArcRest', 'ArcRest'), ('radio', 'radio\
'), ('checkbox', 'checkbox'), ('Vector', 'Vector'), ('placeholder', 'p\
laceholder'),

layer_type

Value:
models.CharField(max_length= 50, choices= TYPE_CHOICES)

arcgis_layers

Value:
models.CharField(max_length= 255, blank= True, null= True)

subdomains

Value:
models.CharField(max_length= 255, blank= True, null= True)

sublayers

Value:
models.ManyToManyField('self', blank= True, null= True)

legend

Value:
models.CharField(max_length= 255, blank= True, null= True)

legend_title

Value:
models.CharField(max_length= 255, blank= True, null= True)

legend_subtitle

Value:
models.CharField(max_length= 255, blank= True, null= True)

utfurl

Value:
models.CharField(max_length= 255, blank= True, null= True)

data_status

Value:
models.CharField(max_length= 255, blank= True, null= True)

data_source

Value:
models.CharField(max_length= 512, blank= True, null= True)

bookmark

Value:
models.CharField(max_length= 755, blank= True, null= True)

map_tiles

Value:
models.CharField(max_length= 255, blank= True, null= True)

data_download

Value:
models.CharField(max_length= 255, blank= True, null= True)

learn_more

Value:
models.CharField(max_length= 255, blank= True, null= True)

metadata

Value:
models.CharField(max_length= 255, blank= True, null= True)

fact_sheet

Value:
models.CharField(max_length= 255, blank= True, null= True)

source

Value:
models.CharField(max_length= 512, blank= True, null= True)

thumbnail

Value:
models.URLField(max_length= 255, blank= True, null= True)

attribute_title

Value:
models.CharField(max_length= 255, blank= True, null= True)

attribute_fields

Value:
models.ManyToManyField('AttributeInfo', blank= True, null= True)

attribute_event

Value:
models.CharField(max_length= 35, choices= EVENT_CHOICES, default= 'cli\
ck')

lookup_field

Value:
models.CharField(max_length= 255, blank= True, null= True)

lookup_table

Value:
models.ManyToManyField('LookupInfo', blank= True, null= True)

vector_color

Value:
models.CharField(max_length= 7, blank= True, null= True)

vector_graphic

Value:
models.CharField(max_length= 255, blank= True, null= True)