Metadata-Version: 1.0
Name: django-leaflet
Version: 0.0.1
Summary: Use Leaflet in your django projects
Home-page: https://github.com/makinacorpus/django-leaflet
Author: Mathieu Leplatre
Author-email: mathieu.leplatre@makina-corpus.com
License: UNKNOWN
Download-URL: http://pypi.python.org/pypi/django-leaflet/
Description: *django-leaflet* allows you to use `Leaflet <leaflet.cloudmade.com>`_ (*version 0.3*)
        in your `Django <https://www.djangoproject.com>`_ projects.
        
        
        =======
        INSTALL
        =======
        
        ::
        
            pip install django-leaflet
        
        =====
        USAGE
        =====
        
        * Add ``leaflet`` to your ``INSTALLED_APPS``
        
        * Add the HTML header :
        
        ::
        
            {% load leaflet_tags %}
            
            <head>
                ...
                {% leaflet_js %}
                {% leaflet_css %}
            </head>
        
        
        * Add the map in your page :
        
        ::
            
            ...
            <body>
                ...
                {% leaflet_map "yourmap" %}
                ...        
            </body>
        
        * Use the *Leaflet* API as usual on the resulting ``yourmap`` object :
        
        ::
        
            <script type="text/javascript">
                ...
                // Add background layer from MapBox
                yourmap.addLayer(new L.TileLayer('http://{s}.tiles.mapbox.com/v3/mapbox.mapbox-light/{z}/{x}/{y}.png'));
                ...
            </script>
        
        * Give your maps a size (**mandatory**) :
        
            <style>
            
                .leaflet-container {
                    width:  600px;
                    height: 400px;
                }
                
                #specialbigmap {
                    height: 800px;
                }
                
            </style>
        
        =======
        AUTHORS
        =======
        
            * Mathieu Leplatre <mathieu.leplatre@makina-corpus.com>
        
        |makinacom|_
        
        .. |makinacom| image:: http://depot.makina-corpus.org/public/logo.gif
        .. _makinacom:  http://www.makina-corpus.com
        
        =======
        LICENSE
        =======
        
            * Lesser GNU Public License
            * Leaflet Copyright - 2010-2011 CloudMade, Vladimir Agafonkin
        
        
Platform: UNKNOWN
Classifier: Topic :: Utilities
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python :: 2.7
