Skip to content

[MAP] As a user, using the map, I want to switch between base/background map and displays/hide specific layers #123

@fe51

Description

@fe51

Pitch

Depending on their usage, users may prefer different map backgrounds (base maps): OpenStreetMap (OSM), IGN or Satellite.

Also, some specific map layers may be useful for analyzing alerts or camera positions

What is done currently

In the app, maps are present in different pages :

  • In the alerts page ( = /alert) : the map displays the position of cameras that detected the alert and a estimated position of the alert
    - From this page, by default, the map is small but there is a button to display the map in full size
  • In the dashboard page ( = /dahsboard) : in the tab "Map" icon, the map displays the position of all the cameras of the current user
    • From this page, the map is big by default
  • In the live streaming (hidden feature) : don't bother looking at this one

The focus here is on the map of the Alerts page and the Dashboard page

Currently, the map displays a single OpenStreetMap raster tile layer (Whether in the alert section, in full-screen mode or in dashboard page). See screens below

Image Image

What has to be done

On the Alerts page (In full screen mode) and Dashboard camera page , add a layer control allowing users to :

  • Switch between 3 base/background maps :
    • OSM (current one and the one to set as default)
    • IGN
    • Satellite
      -> see details about sources in guidelines section
  • Enable or disable predefined overlay layer, especially : DFCI grid

On the Alerts page, layer management could be limiting outside of full screen mode and prevent proper viewing of the map information for the current alert. Therefore, do not offer this option when displaying the map in small size in the alert section -> to be discussed

On the other hand, if layer management is only offered in full screen mode, it would be good to keep the selected map background once the user exits full screen mode and returns to the alerts page → If this is too complicated at first, this functionality can be omitted.

Image Image

Tips - technical guidelines

Thanks a lot for your help 😸 ! Happy to discuss it !

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions