package leaflet
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Leaflet.MapSource
create container creates a map on container. * To have a functional map you will need to add a tile layer to it.
invalidate_size map checks if the map container size changed and updates the map if so
set_view latlng Some(zoom) map sets the view of the map (geographical center and zoom)
fit_world map sets a map view that mostly contains the whole world with the maximum zoom level possible
on event handler map add an event listener on map for event event with handler handler
wrap_latlng latlng map returns a new Latlng.t where lat and lng has been wrapped according to the map's CRS's wrapLat and wrapLng properties, if they are outside the CRS's bounds. By default this means longitude is wrapped around the dateline so its value is between -180 and +180 degrees