1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
from .map import Map
from .layer import LayerGroup, FeatureGroup, imageOverlay
from .layer.tile import TileLayer
from .layer.marker import Marker
from .layer.icon import Icon
from .layer.vector import Circle, CircleMarker, Polygon, Polyline, Rectangle
from .control import Control
class L:
"""
Leaflet namespace that holds reference to all the leaflet objects
"""
map = Map
tileLayer = TileLayer
imageOverlay = imageOverlay
marker = Marker
icon = Icon
circleMarker = CircleMarker
polyline = Polyline
polygon = Polygon
rectangle = Rectangle
circle = Circle
layerGroup = LayerGroup
featureGroup = FeatureGroup
control = Control
|