Skip to content

Embedded map & map feature collection support

filip.varecha requested to merge feat-maps-utils into test

Please review this commit-by-commit.

This contains several things in one bundle.

Updated to styleguide v2.9.1

  • Adds .modal__close
  • Fixes annoying vertical jump on page initial render due to menu subitems flashing out for a moment
  • Fixes bad stacking order on candidate detail page

Map collection home page

Snímek_obrazovky_2022-05-01_v_15.26.41Snímek_obrazovky_2022-05-01_v_15.26.51Snímek_obrazovky_2022-05-01_v_15.27.03Snímek_obrazovky_2022-05-01_v_15.27.13

image image

Map collection detail page

Snímek_obrazovky_2022-05-03_v_9.35.12 image

Individual features defined as GeoJSON features (Point, Polygon or LineString).

Map embedding using a block

This supports points or GeoJSON features.

Snímek_obrazovky_2022-05-01_v_15.31.32 image

We're supporting several different map tile providers:

  1. OSM Mapnik - the default, doesn't need any other config.
  2. Stamen maps - these maps can be used freely. However, sometimes the map server can be down.
  3. Two Stadia maps tile styles - these are really nice and available free of charge (unless used on heavy traffic sites) but require registration & API key creation.

When entering GeoJSON features, validation should ensure only meaningful values are entered.

Numbering of individual features within collection uses caching to save queries - I hope we use something else than locmem on production as the invalidation wouldn't work properly with multiple workers/threads/PODs/whatever.

I am a little bit unsure on how to handle new JS and CSS dependencies related to mapping. It would be best to bundle those up. Currently, I left them being served locally file by file but I'm open to other suggestions.

Edited by filip.varecha

Merge request reports

Loading