Skip to content
Snippets Groups Projects
Commit 1daa41db authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Small improvements

parent 9882de50
Branches
No related tags found
No related merge requests found
......@@ -44,8 +44,8 @@ var initMap = function(geoJSON, container, mapAttribution)
// center to correct map projection)
var view = new ol.View({
center: ol.proj.transform([10,65], 'EPSG:4326', map.getView().getProjection().getCode()),
zoom:1,
maxZoom: 10
zoom: 1,
maxZoom: 8
});
map.setView(view);
......
......@@ -190,6 +190,8 @@ class Message:
class Advertisement(models.Model):
def __unicode__(self):
return self.ad_heading
""" Represents an advertisement to be shown on the frontpage """
ad_heading = models.CharField(max_length=200, verbose_name=_("Headline"))
ad_text = models.TextField()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment