django-leaflet Changelog

New in version 0.11.0

February 7th, 2014
  • Add control of `metric` and `imperial` in `SCALE` option (thanks @smcoll)
  • Upgrade to Leaflet.draw 0.2.3

New in version 0.7.4 (August 29th, 2013)

  • Fix projection download error if not available
  • Compute resolutions the same way TileCache does it, and provide example of TileCache configuration.
  • Raise ImproperlyConfigured if TILES_EXTENT is not portrait (since not supported)

New in version 0.7.3 (August 23rd, 2013)

  • Do not use console() to warn about deprecated stuff if not available (

New in version 0.7.2 (August 23rd, 2013)

  • Fix JS error when no callback value is provided.

New in version 0.7.1 (August 22nd, 2013)

  • Fix map initialization with default tiles setting
  • Fix map ``fitBounds()`` to ``SPATIAL_EXTENT`` in settings

New in version 0.7.0 (August 21st, 2013)

  • Breaking changes:
  • The ``leaflet_map`` template tag no longer registers initialization functions in global scope, and no longer adds map objects into ``window.maps`` array by default. Use ``LEAFLET_CONFIG['NO_GLOBALS'] = False`` to restore these features.
  • Initialization callback function no longer receives the map ``bounds`` in second argument, but the map options object.
  • Deprecated:
  • JS default callback function ( *Init()) for map initialization is deprecated. Use explicit ``callback`` parameter in template tag, or listen to window event ``map:init`` instead. (See *Use Leaflet APIsection in README.)
  • ``TILES_URL`` entry in ``LEAFLET_CONFIG`` is deprecated. Use ``TILES`` instead.
  • Settings lookup is restricted to ``LEAFLET_CONFIG`` dict. Most notably, ``SRID``, ``MAP_SRID`` and ``SPATIAL_EXTENT`` at global Django settings level are discouraged.
  • New features:
  • Add ability to associate layers attributions from settings
  • Add ``auto-include`` key for entries in ``PLUGINS`` setting, in order to implicity load plugins with ``leaflet_css`` and ``leaflet_js`` tags.
  • Rewrote map initialization, into less flexible and obstruvise way.
  • Use plugin system for Leaflet.MiniMap.
  • Add ``loadevent`` parameter to ``leaflet_map`` tag.
  • Map initialization is now idempotent, does nothing if map is already initialized.
  • Add ``ATTRIBUTION_PREFIX`` setting to control prefix globally.

New in version 0.6.0 (August 8th, 2013)

  • Upgrade to Leaflet 0.6.4

New in version 0.6.0a (July 30th, 2013)

  • Upgrade to Leaflet 0.6.2
  • Upgrade Leaflet.Minimap (rev 3cd58f7)
  • Upgrade Proj4Leaflet (rev f4f5b6d)

New in version 0.5.0 (February 13th, 2013)

  • Add minimap support
  • Drop Leaflet version switching
  • Update Leaflet to 0.5.1