dioxus_leaflet/
lib.rs

1//! # Dioxus Leaflet
2//! 
3//! A general-purpose Leaflet map component for Dioxus applications.
4//! 
5//! ## Features
6//! 
7//! - Easy-to-use map component with customizable markers
8//! - Support for popups and custom styling
9//! - Extensible marker system
10//! - TypeScript-like props system
11//! - CDN-based Leaflet integration
12//! 
13//! ## Basic Usage
14//! 
15//! ```rust
16//! use dioxus::prelude::*;
17//! use dioxus_leaflet::{Map, MapPosition, MapMarker};
18//! 
19//! fn App() -> Element {
20//!     let markers = vec![
21//!         MapMarker {
22//!             lat: 51.505,
23//!             lng: -0.09,
24//!             title: "London".to_string(),
25//!             description: Some("Capital of England".to_string()),
26//!             ..Default::default()
27//!         }
28//!     ];
29//! 
30//!     rsx! {
31//!         Map {
32//!             initial_position: MapPosition::default(),
33//!             markers: markers,
34//!             height: "400px",
35//!             width: "100%"
36//!         }
37//!     }
38//! }
39//! ```
40
41pub mod components;
42pub mod types;
43pub mod utils;
44
45// Re-export main types and components
46pub use components::*;
47pub use types::*;
48pub use utils::*;