Open SourceTypeScript

MoroMap

Interactive, zero-fetch Morocco map library for JS/TS & React. Features 12 regions, 75 provinces, choropleths, data markers, 9 themes, and SVG/PNG export.

3 stars 0 forks

MoroMap is a customizable, zero-dependency-fetch library for embedding interactive maps of Morocco in JavaScript, TypeScript, and React applications.

All geographic boundaries (12 regions and 75 provinces/prefectures) and city coordinates are bundled directly inside the package, requiring zero external requests at runtime. Key features include:

• 2 Map Levels: Regions and Provinces/Prefectures. • Framework Support: Vanilla JS/TS engine with a native React wrapper (<MoroccoMapView />). • Data Visualizations: Choropleth zones with auto-scaled legends and value-based data markers with point clustering. • Styling & Themes: 9 built-in theme presets (Light, Dark, Ocean, Sahara, Royal, Sunset, Emerald, Slate, Monochrome) plus custom theme generation from a single accent color. • Multilingual Labels: French, Arabic, and Amazigh (Tifinagh) region/province names. • Search & Export: Integrated search autocomplete and high-resolution SVG, PNG (retina scale), and print exports.

Other Open Source Projects

View all