Map

Function Map 

Source
pub fn Map(_: MapProps) -> Element
Expand description

Main map component using Leaflet

ยงProps

For details, see the props struct definition.

  • initial_position : MapPosition

    Initial position of the map

  • height : Option<String>

    Height of the map container

  • width : Option<String>

    Width of the map container

  • options : Option<MapOptions>

    Map configuration options

  • class : Option<String>

    Custom CSS class for the map container

  • style : Option<String>

    Custom CSS styles for the map container

  • on_click : Option<EventHandler<LatLng>>

    Callback when map is clicked

  • on_move : Option<EventHandler<MapPosition>>

    Callback when map is moved

  • children : Option<Element>