Skip to content

Commit

Permalink
Merge pull request #47 from jnm/master
Browse files Browse the repository at this point in the history
Document RESET_VIEW and NO_GLOBALS
  • Loading branch information
leplatrem committed Nov 27, 2013
2 parents 611cbf4 + 40c6b69 commit 600b37f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,21 @@ By default it shows the tiles of the first layer in the list.

(`More info... <https://github.com/Norkart/Leaflet-MiniMap>`_)

Reset view button
~~~~~~~~~~~~~~~~~
By default, a button appears below the zoom controls and, when clicked, shows the entire map.
To remove this button, set::

'RESET_VIEW': False


Global initialization functions and ``window.maps``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Since 0.7.0, 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. To restore these features, use::

'NO_GLOBALS' = False


Plugins
~~~~~~~
Expand Down

0 comments on commit 600b37f

Please sign in to comment.