Commits

Yohan Boniface committed 6578dcf

update README

  • Participants
  • Parent commits babcd65

Comments (0)

Files changed (1)

+---------
+Important
+---------
+
+Version 0.5 totally review the modelisation: instead of one model per feature (Marker, Polygon, Polyline),
+now all data are stored as geojson attached to the DataLayer.
+
+
 ======================
 Django-Leaflet-Storage
 ======================
 Check the demo `here <http://umap.fluv.io>`_
 
 
+
+
 -----------------------
 Maintained repositories
 -----------------------
 - one TileLayer instance
 - one Licence instance
 
-Then, go to the map front page (something like http://localhost:8017/map/my-map-slug), and you will be able to add features (Marker, Polygon...).
-
-
-----------------------
-Advanced configuration
-----------------------
-
-Use your own models
--------------------
-
-Sometimes, you will need to add specific properties to the Marker, Polyline or Polygon. Its easy to do so with `leaflet_storage`.
-
-Create a model that inherit from `AbstractMarker` (for Marker example)::
-
-    from leaflet_storage.base_models import AbstractMarker
-
-
-    class MyMarker(AbstractMarker):
-        # your fields here
-
-Then, in your settings, add::
-
-    LEAFLET_STORAGE_MODELS = {
-        "Marker": ('my_app', 'MyModel'),
-    }
-
-.. warning::
-   Of course, you will need to do this *before* running the initial syncdb.
-
-
-Decide which features are editable
-----------------------------------
-
-For now, only Marker, Polyline and Polygon features are supported.
-Maybe you just want for example the Marker to be editable.
-For this, you will need to override the map configuration in JavaScript.
-You will have to explicity prevent the Polyline and Polygon editing,
-doing so::
-
-    <script>
-        // create map_settings like the default template does
-        map_settings.editOptions = {
-                "polyline": null,
-                "polygon": null
-            }
-        // Create the map like the default template does
-    </script>
-
-
-Disabling totally inplace editing
----------------------------------
-Again, this have to be done in JavaScript::
-
-    <script>
-        map_settings.allowEdit = false;
-    </script>
+Then, go to the map creation page (something like http://localhost:8017/map/new), and you will be able to add features (Marker, Polygon...).