Skip to content

Commit 6d1b377

Browse files
committed
Add pypip.in badges
1 parent f9e7c4b commit 6d1b377

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

README.rst

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ in your `Django <https://www.djangoproject.com>`_ projects.
33

44
It embeds Leaflet in version *0.6.4*.
55

6+
.. image:: https://pypip.in/v/django-leaflet/badge.png
7+
:target: https://pypi.python.org/pypi/django-leaflet
8+
9+
.. image:: https://pypip.in/d/django-leaflet/badge.png
10+
:target: https://pypi.python.org/pypi/django-leaflet
11+
612
.. image:: https://travis-ci.org/makinacorpus/django-leaflet.png
713
:target: https://travis-ci.org/makinacorpus/django-leaflet
814

@@ -46,15 +52,15 @@ USAGE
4652
* Add the HTML header::
4753

4854
{% load leaflet_tags %}
49-
55+
5056
<head>
5157
...
5258
{% leaflet_js %}
5359
{% leaflet_css %}
5460
</head>
5561

5662
* Add the map in your page, providing a name::
57-
63+
5864
...
5965
<body>
6066
...
@@ -125,16 +131,16 @@ CSS is your friend:
125131
::
126132

127133
<style>
128-
134+
129135
.leaflet-container { /* all maps */
130136
width: 600px;
131137
height: 400px;
132138
}
133-
139+
134140
#specialbigmap {
135141
height: 800px;
136142
}
137-
143+
138144
</style>
139145

140146

@@ -211,7 +217,7 @@ Disable scale control with km and miles::
211217
Minimap control
212218
~~~~~~~~~~~~~~~
213219

214-
Shows a small map in the corner which shows the same as the main map with a
220+
Shows a small map in the corner which shows the same as the main map with a
215221
set zoom offset::
216222

217223
'MINIMAP': True
@@ -245,7 +251,7 @@ Both 'css' and 'js' support identical features for specifying resource URLs:
245251
* a URL beginning from the root - will be included as-is; **example**: ``/root/path/to/stylesheet.css``
246252
* a relative URL - settings.STATIC_URL will be prepended; **example**: ``relative/path/to/stylesheet.css`` will be included as **/static/relative/path/to/stylesheet.css** (depending on your setting for STATIC_URL)
247253

248-
Now, use ``leaflet_js`` and ``leaflet_css`` tags to load CSS and JS resources of
254+
Now, use ``leaflet_js`` and ``leaflet_css`` tags to load CSS and JS resources of
249255
configured Leaflet plugins.
250256

251257
By default only plugins with ``'auto-include'`` as True will be included.

0 commit comments

Comments
 (0)