The module in the NPDS environment

Geooloc, created by Jean-Pierre Barbary (jpb), allows the geolocation of visitors to your site (members and anonymous) NPDS.
Geoloc uses Openlayers APIs.
The visualization is configurable by the user.

Overview

What types of cards can be displayed?

Base map

You have the choice between several data providers offering themselves several types of thematic background:

Type Plan
Plan (OSM)
Noir et blanc
Black and white (Stamen)
dessin
Drawing (Stamen)
relief
Landscape (Stamen)
relief
Landscape (Mapbox)
carte
Map (Mapbox)
satellite
Satellite (Nasa)
satellite
Satellite (Bing maps)
satellite et labels
Satellite & labels (Bing maps)
plan
Plan (Bing maps)
Utility layer

You have two utility layers that you can superimpose on any background map: a grid of meridians and parralleles and a layer representing the lines of coasts and borders:

Grille
Grid
Coastline and border
Coastline and borders

What can the user do?

sidebar

The user has a number of tools to visualize at its convenience the map. Most of these tools are located in the right side panel. This panel is retractable by clicking on the .

This panel is divided into 4 blocks:

  • Functions
  • Members online
  • Anonymous
  • Members
The Functions block
Define or modify its geolocation
The upper part of the block contains the command allowing the geolocation of the user, as described in the section
Choose the background map
The user can change the type of displayed maps by clicking on the drop-down menu and then selecting a map background. The opacity of the map backgrounds can be changed with the cursor. For the images provided by NASA a cursor allows to choose the date of the images on the last 7 days.
Utility layer
By clicking on the switcher
you can add or remove one or more utility layers.

The types of available map backgrounds and utility layers were described in the previous section:
bloc fonctions
The blocks of visitors
These three retractable blocks present the lists of visitors by type and allow their switcher to display them or not on the map.
Choisir la géolocalisation affichée
  • The members geo-referenced connected.
  • The anonymous geo-referenced connected.
  • The members geo-referenced not connected.

How to interpret the visualization of information?
Manipulate the map

This control is the tool used to zoom. You can also use the double click, the touchpad or the wheel (which will be active after a first click on the map...) ...

Move the map by holding the click, the map follows the move of the mouse.

This control allows you to view the map in full screen (depending on your browser’s capabilities)...

The combination ⌥⇧ click allows the map to be rotated. Once the rotation starts this control appears it allows to redirects the map to the north...

Map scale
500 km
Each time you change the map zoom, the scale is automatically updated. The distance units are in kilometer.
Technical information of the map
You also have at the left foot of the map the precise geographical coordinates of the position of your mouse pointer on the map.

How can the visualization of information be interpreted?

All three blocks have a retractable list of georeferenced elements. With the switcher these can be displayed or not on the map.
A click on an item in the list will target and center this one on the map, and opens a window.
Clicking on the map icons opens a window with information and commands depending on the georeferenced element type. As described below.

The members geo-referenced connected.
The anonymous geo-referenced connected.
The members geo-referenced not connected.

Notice: in the members block you can search and filter...

panneau
The three types of windows displayed on the map:

fenetre info membre en ligne

Online geolocated member window

In this window we find: the member’s username and avatar, and links to the user’s profile, website or minisite, social networks, as well as direct access to internal messaging if you are a member of the site.

fenetre info anonyme

Geolocated member window

In this window we find: the username and avatar of the member, the date of his last visit, and links allowing to consult the profile, the website or the minisite of this user as well as a direct access to the internal messaging if you are a member of the site.

fenetre info anonyme

Online geolocated anonymous window

In this window we find: the IP address as well as the name of the host, the number of visits of this IP, the page consulted on the site and some geographical information.


NB: the shapes and colors of the icons may vary because they depend on the choice of parameters by administrators and/or themes used.

How do we geolocate?

To register, you must be a registered member of the site.
Two methods are available:
- text :
go to your profile /user.php?op=edituser
fill in the latitude and longitude fields (in decimal form: e.g. 34.9936)
then validate.
NB: only this method, by deleting the latitude and longitude information, makes it possible to no longer be geolocated.

- graphic :
go to your profile /user.php?op=edituser and click at the bottom of the left page on the icon
or
If the map block exists in the current page click on its map link
or
go to /modules.php?ModPath=geoloc&ModStart=geoloc

On the map. Unfold the functions block of the sidebar and select the check box "Set or change position" then click on the map at the desired point. A window opens and asks you to confirm your registration. To change the positioning, the same procedure must be used.

new geolocation

Localization

To position yourself carefully, it is necessary to zoom the map. Don’t forget to click on the save button to validate your position.

change geolocation

Re-localization

If you want to change your position, the display shows your registered position and proposes to validate the new position.