Skip to content

Commit

Permalink
Merge 99e4644 into e54a401
Browse files Browse the repository at this point in the history
  • Loading branch information
nonZero committed Jan 8, 2015
2 parents e54a401 + 99e4644 commit 733683e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CHANGELOG
0.15.3dev (unreleased)
-------------------

*
* Map attribution can be translated using ugettext_lazy


0.15.2 (2014-12-22)
Expand Down
7 changes: 4 additions & 3 deletions leaflet/templatetags/leaflet_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from django import template
from django.conf import settings
from django.utils import six
from django.utils.encoding import force_text

from leaflet import (app_settings, SPATIAL_EXTENT, SRID, PLUGINS, PLUGINS_DEFAULT,
PLUGIN_ALL, PLUGIN_FORMS)
Expand Down Expand Up @@ -68,9 +69,9 @@ def leaflet_map(name, callback=None, fitextent=True, creatediv=True, loadevent='
fitextent=fitextent,
center=app_settings['DEFAULT_CENTER'],
zoom=app_settings['DEFAULT_ZOOM'],
layers=[(six.text_type(label), url, attrs) for (label, url, attrs) in app_settings.get('TILES')],
overlays=[(six.text_type(label), url, attrs) for (label, url, attrs) in app_settings.get('OVERLAYS')],
attributionprefix=app_settings.get('ATTRIBUTION_PREFIX'),
layers=[(force_text(label), url, attrs) for (label, url, attrs) in app_settings.get('TILES')],
overlays=[(force_text(label), url, attrs) for (label, url, attrs) in app_settings.get('OVERLAYS')],
attributionprefix=force_text(app_settings.get('ATTRIBUTION_PREFIX'), strings_only=True),
scale=app_settings.get('SCALE'),
minimap=app_settings.get('MINIMAP'),
resetview=app_settings.get('RESET_VIEW'),
Expand Down

0 comments on commit 733683e

Please sign in to comment.