Download 1.0.0 PDF - Read the Docs
Transcript
Geotrek Documentation, Release 1.0.0
• last_name : string
• password : string (simple md5 encoded, or full hashed and salted password)
• email : string
• level : integer (1: readonly, 2: redactor, 3: path manager, 4: trekking manager, 6: administrator)
• structure : string
• lang : string (language code)
notes User management will be disabled from Administration backoffice.
In order to disable remote login, just remove authent_dbname value in settings file, and update
instance (see paragraph above).
Geotrek can support many types of users authentication (LDAP, oauth, ...), contact-us for more
details.
4.7 Map layers colors and style
All layers colors can be customized from the settings. See Leaflet reference for vectorial layer style.
• To apply these style changes, re-run bin/supervisorctl restart all.
MAP_STYLES['path'] = {'color': 'red', 'weight': 5}
Or change just one parameter (the opacity for example) :
MAP_STYLES['city']['opacity'] = 0.8
Regarding colors that depend from database content, such as land layers (physical types, work management...) or
restricted areas. We use a specific setting that receives a list of colors :
COLORS_POOL['restrictedarea'] = ['#ff00ff', 'red', '#ddddd'...]
See the default values in geotrek/settings/base.py for the complete list of available styles.
Restart the application for changes to take effect.
4.8 External raster layers
It is possible to add overlay tiles layer on maps. For example, it can be useful to:
• Get the cadastral parcels on top of satellite images
• Home made layers (with Tilemill or QGisMapserver for example). Like the park center borders, traffic maps,
IGN BDTopo® or even the Geotrek paths that are marked as invisible in the database!
In custom.py, just add the following lines:
LEAFLET_CONFIG['OVERLAYS'] = [
('Coeur de parc', 'http://serveur/coeur-parc/{z}/{x}/{y}.png', '© PNF'),
]
4.7. Map layers colors and style
15