problems in options 'layers'

10 views
Skip to first unread message

koblitz

unread,
Aug 26, 2012, 3:06:29 PM8/26/12
to olwi...@googlegroups.com
Hi,

I'm new in geodjango and I began today in olwidget, wich I'm liking very much.

I'm try get other layer in the options, but I could not.
That's the strange error...

Exception Value:  'm' is not in list

when a throw off 'maps', everything is ok.

sorry for my english,
any help I appreciate,
abraços,
Koblitz


forms.py

class EditForm(MapModelForm):

class Meta:

model = EstadosBorder

maps=(('mpoly',),{'layers':['google.satellite']})


In settings.py

GOOGLE_API_KEY=""


models.py

class EstadosBorder(models.Model):


cod_uf=models.CharField(max_length=2)

nome=models.CharField(max_length=64)

areato_km2=models.FloatField()

perim_km=models.FloatField()

area_km2=models.FloatField()

fonte=models.CharField(max_length=20)

nome_reg=models.CharField(max_length=20)

cod_reg=models.CharField(max_length=1)

estado=models.CharField(max_length=5)

shape_area=models.FloatField()

shape_len=models.FloatField()

mpoly=models.MultiPolygonField()

objects=models.GeoManager()


def __unicode__(self):

return self.nome






Reply all
Reply to author
Forward
0 new messages