summaryrefslogtreecommitdiff
path: root/docs/_build/html/customisation.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/_build/html/customisation.html')
-rw-r--r--docs/_build/html/customisation.html57
1 files changed, 34 insertions, 23 deletions
diff --git a/docs/_build/html/customisation.html b/docs/_build/html/customisation.html
index 43faf84..1153c89 100644
--- a/docs/_build/html/customisation.html
+++ b/docs/_build/html/customisation.html
@@ -26,8 +26,7 @@
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="Chimère 2.0 documentation" href="index.html" />
- <link rel="next" title="Administration" href="administration.html" />
- <link rel="prev" title="Configuration" href="configuration.html" />
+ <link rel="prev" title="Chimère import/export" href="import_export.html" />
</head>
<body>
<div class="related">
@@ -37,10 +36,7 @@
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
- <a href="administration.html" title="Administration"
- accesskey="N">next</a> |</li>
- <li class="right" >
- <a href="configuration.html" title="Configuration"
+ <a href="import_export.html" title="Chimère import/export"
accesskey="P">previous</a> |</li>
<li><a href="index.html">Chimère 2.0 documentation</a> &raquo;</li>
</ul>
@@ -67,13 +63,34 @@
</table>
<p>This documents presents the installation of Chimère.
The version has been updated for version 2.0.0.</p>
-<div class="section" id="updating-the-design">
-<h2>Updating the design<a class="headerlink" href="#updating-the-design" title="Permalink to this headline">¶</a></h2>
-<p>You can of course customize Chimère with your own CSS. To do that just edit the file static/styles.css.</p>
-<p>After this basic configuration done the harder is done. You can do now application administration tasks.</p>
+<div class="section" id="managing-layers">
+<span id="id1"></span><h2>Managing layers<a class="headerlink" href="#managing-layers" title="Permalink to this headline">¶</a></h2>
+<p>There is some different layers available by default in Chimère (OSM Mapnik, OSM
+Mapquest, OSM Transport map, OSM Cyclemap). You can add some extra layer using
+the web administration pages of Chimère. The new layer is defined with the
+appropriate <a class="reference external" href="http://openlayers.org/">Openlayers</a> JS code. This JS code must
+be a compatible Openlayers Layer instance with no ending semi-colon. For
+instance defining a Bing layer can be done with this kind of code:</p>
+<div class="highlight-python"><pre>new OpenLayers.Layer.Bing({
+ name: "Aerial",
+ key: "my-bing-API-key",
+ type: "Aerial"})</pre>
+</div>
+<p>Refer to the <a class="reference external" href="http://dev.openlayers.org/releases/OpenLayers-2.12/doc/apidocs/files/OpenLayers-js.html">Openlayers documentation API</a>
+for more details.</p>
</div>
-<div class="section" id="id1">
-<h2>Managing layers<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
+<div class="section" id="customizing-the-layout-and-the-design">
+<h2>Customizing the layout and the design<a class="headerlink" href="#customizing-the-layout-and-the-design" title="Permalink to this headline">¶</a></h2>
+<p>If you only want to customize the CSS, the easiest way to do it is to add a
+link to an extra CSS to your <em>Areas</em> cf. <a class="reference internal" href="configuration.html#managing-areas"><em>Managing areas</em></a>.</p>
+<p>If you want to do larger changes in the layout and the style the (well named)
+example_project can be customized to fit your needs. Each template file present
+in the <em>chimere/templates</em> directory can be copied in your <em>myproject/templates</em>
+directory and then modified.
+You only need to copy files that you want to modify. Theses files are in
+Django template language mainly made of pure HTML with some logic. Refer to
+the <a class="reference external" href="https://docs.djangoproject.com/en/1.4/ref/templates/">Django template documentation</a>
+for more details.</p>
</div>
</div>
@@ -86,18 +103,15 @@ The version has been updated for version 2.0.0.</p>
<h3><a href="index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">Chimère customisation</a><ul>
-<li><a class="reference internal" href="#updating-the-design">Updating the design</a></li>
-<li><a class="reference internal" href="#id1">Managing layers</a></li>
+<li><a class="reference internal" href="#managing-layers">Managing layers</a></li>
+<li><a class="reference internal" href="#customizing-the-layout-and-the-design">Customizing the layout and the design</a></li>
</ul>
</li>
</ul>
<h4>Previous topic</h4>
- <p class="topless"><a href="configuration.html"
- title="previous chapter">Configuration</a></p>
- <h4>Next topic</h4>
- <p class="topless"><a href="administration.html"
- title="next chapter">Administration</a></p>
+ <p class="topless"><a href="import_export.html"
+ title="previous chapter">Chimère import/export</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/customisation.txt"
@@ -127,10 +141,7 @@ The version has been updated for version 2.0.0.</p>
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
- <a href="administration.html" title="Administration"
- >next</a> |</li>
- <li class="right" >
- <a href="configuration.html" title="Configuration"
+ <a href="import_export.html" title="Chimère import/export"
>previous</a> |</li>
<li><a href="index.html">Chimère 2.0 documentation</a> &raquo;</li>
</ul>