Review Request: Interactive Map (Suite with Leaflet Wrapper and Editor Widget)

Forums: 

Hi everyone,

I have developed an interactive map suite for H5P designed to bring geographical features to the platform. To ensure clean architecture and code reusability, the project is structured into three distinct libraries:

  1. H5P.Leaflet: A reusable utility wrapper (runnable: 0) for Leaflet 1.9.4. It handles asset loading (JS/CSS/Icons) globally to prevent duplicate overhead.

  2. H5PEditor.MapPointSelector: A widget for the H5P Editor that allows content creators to select coordinates by clicking on a map or using an integrated geocoding search bar (via Nominatim).

  3. H5P.InteractiveMap: The main runnable content type that ties everything together, allowing authors to place markers and bind other H5P sub-libraries (like Advanced Text, Images, Videos, or Quizzes) directly inside modal windows on the map.

Why this modular approach? By decoupling the core map rendering (H5P.Leaflet) and the authoring tool (H5PEditor.MapPointSelector) from the final content type, this suite opens up new possibilities for the H5P developer community. Other developers can easily preload these libraries to build completely different map-based experiences (such as route trackers, scavenger hunts, or historical timelines) without having to bundle Leaflet or reinvent a coordinate picker from scratch.

I would like to request a review for this suite. Since they are closely interconnected, reviewing H5P.InteractiveMap will showcase the full lifecycle and integration of the other two dependencies.

Thank you for your time and feedback!

GitHub Repositories

https://github.com/Matheu46/h5p-leaflet

https://github.com/Matheu46/h5p-editor-map-point-selector

 https://github.com/Matheu46/h5p-interactive-map

Attachments: 
otacke's picture