Maps

This plugin provides:

  • possibility to store geogaphical coordinates for members (latitude and longitude),
  • a public map displaying up to date members that have choosen to be publically visible.

Installation

First of all, download the plugin: https://download.tuxfamily.org/galette/plugins/galette-plugin-maps-1.4.0.tar.bz2

Extract the downloaded archive in Galette plugins directory. For example, under linux (replacing {url} and {version} with correct values):

$ cd /var/www/html/galette/plugins
$ wget {url}
$ tar xjvf galette-plugin-maps-{version}.tar.gz

Database initialisation

In order to work, this plugin requires several tables in the database. See Galette plugins management interface.

And this is finished; Maps plugin is installed :)

Plugin usage

When the plugin is installed, a group Maps is added to Galette menu when a member is logged in, which contains My location entry. This page allow member to store its location.

A Geolocalize button is also added when displaying a member, that allows administrators to set member coordinates.

Also, a Map entry is added in public pages list, that displays geolocalized members that are up to date. Administrators and staff members will see all members, while simple members and visitors will only see up to date public ones.

First of all, members will enter their location coordinates. Several options are provided:

  • if town has been set in member informations, a list of possible places will be proposed (via Nominatim online service),
  • additionnaly, a search zone (provided from OpenStreetMap),
  • and also a geolocalize button using browser capacities.

The search zone can be used when saving members location, and when displaying the maps.

../_images/towns_list.png

A member can define its location (with the precision he wants) on the map selecting one of the propositions:

../_images/location_select.png

Using the geolocalization button will define its position from the browser:

../_images/geoloc.png

Then, member location is displayed on map, and can be removed:

../_images/location_selected.png

How to get the sources?

Please refer to Galette developer guide to get informations about souces retrieval, and development model.