(
        self,
        identifier,  # type: str
        lat,  # type: float
        lng,  # type: float
        zoom=13,  # type: int
        maptype="ROADMAP",  # type: str
        markers=None,  # type: Optional[Union[Dict, List, Tuple]]
        varname="map",  # type: str
        style="height:300px;width:300px;margin:0;",  # type: str
        cls="map",  # type: str
        language="en",  # type: str
        region="US",  # type: str
        rectangles=None,  # type: Optional[List[Union[List, Tuple, Tuple[Tuple], Dict]]]
        circles=None,  # type: Optional[List[Union[List, Tuple, Dict]]]
        polylines=None,  # type: Optional[List[Union[List, Tuple, Dict]]]
        polygons=None,  # type: Optional[List[Union[List, Tuple, Dict]]]
        zoom_control=True,  # type: bool
        maptype_control=True,  # type: bool
        scale_control=True,  # type: bool
        streetview_control=True,  # type: bool
        rotate_control=True,  # type: bool
        scroll_wheel=True,  # type: bool
        fullscreen_control=True,  # type: bool
        collapsible=False,  # type: bool
        mapdisplay=False,  # type: bool
        cluster=False,  # type: bool
        cluster_imagepath=DEFAULT_CLUSTER_IMAGE_PATH,  # type: str
        cluster_gridsize=60,  # type: int
        fit_markers_to_bounds=False,  # type: bool
        center_on_user_location=False,  # type: bool
        report_markerClickpos=False,  # type: bool
        report_clickpos=False,  # type: bool
        markerClickpos_uri="",  # type: str
        clickpos_uri="",  # type: str
        styles="",
        layer="",
        map_ids=None,
        bicycle_layer=False,
        heatmap_data=None,
        heatmap_layer=False,
        **kwargs
    )
Builds the Map properties
Builds the Map properties
Builds the Map properties
def __init__(
        self,
        identifier,  # type: str
        lat,  # type: float
        lng,  # type: float
        zoom=13,  # type: int
        maptype="ROADMAP",  # type: str
        markers=None,  # type: Optional[Union[Dict, List, Tuple]]
        varname="map",  # type: str
        style="height:300px;width:300px;margin:0;",  # type: str
        cls="map",  # type: str
        language="en",  # type: str
        region="US",  # type: str
        rectangles=None,  # type: Optional[List[Union[List, Tuple, Tuple[Tuple], Dict]]]
        circles=None,  # type: Optional[List[Union[List, Tuple, Dict]]]
        polylines=None,  # type: Optional[List[Union[List, Tuple, Dict]]]
        polygons=None,  # type: Optional[List[Union[List, Tuple, Dict]]]
        zoom_control=True,  # type: bool
        maptype_control=True,  # type: bool
        scale_control=True,  # type: bool
        streetview_control=True,  # type: bool
        rotate_control=True,  # type: bool
        scroll_wheel=True,  # type: bool
        fullscreen_control=True,  # type: bool
        collapsible=False,  # type: bool
        mapdisplay=False,  # type: bool
        cluster=False,  # type: bool
        cluster_imagepath=DEFAULT_CLUSTER_IMAGE_PATH,  # type: str
        cluster_gridsize=60,  # type: int
        fit_markers_to_bounds=False,  # type: bool
        center_on_user_location=False,  # type: bool
        report_markerClickpos=False,  # type: bool
        report_clickpos=False,  # type: bool
        markerClickpos_uri="",  # type: str
        clickpos_uri="",  # type: str
        styles="",
        layer="",
        map_ids=None,
        bicycle_layer=False,
        heatmap_data=None,
        heatmap_layer=False,
        **kwargs
    ):
        # type: (...) -> None
        """Builds the Map properties"""
        self.cls = cls
        self.style = style
        self.language = language
        self.region = region
        self.varname = varname
        self.center = self.verify_lat_lng_coordinates(lat, lng)
        self.zoom = zoom
        self.maptype = maptype
        self.markers = []  # type: List[Any]
        self.map_ids = map_ids
        self.build_markers(markers)
        self.rectangles = []  # type: List[Any]
        self.build_rectangles(rectangles)
        self.circles = []  # type: List[Any]
        self.build_circles(circles)
        self.polylines = []  # type: List[Any]
        self.build_polylines(polylines)
        self.polygons = []  # type: List[Any]
        self.build_polygons(polygons)
        self.identifier = identifier
        self.zoom_control = zoom_control
        self.maptype_control = maptype_control
        self.scale_control = scale_control
        self.streetview_control = streetview_control
        self.rotate_control = rotate_control
        self.scroll_wheel = scroll_wheel
        self.fullscreen_control = fullscreen_control
        self.collapsible = collapsible
        self.mapdisplay = mapdisplay
        self.center_on_user_location = center_on_user_location
        self.report_clickpos = report_clickpos
        self.clickpos_uri = clickpos_uri
        self.report_markerClickpos = report_markerClickpos
        self.markerClickpos_uri = markerClickpos_uri

        self.cluster = cluster
        self.cluster_imagepath = cluster_imagepath
        self.cluster_gridsize = cluster_gridsize

        self.fit_markers_to_bounds = fit_markers_to_bounds
        self.styles = styles
        self.layer = layer
        self.bicycle_layer = bicycle_layer
        self.heatmap_layer = heatmap_layer
        self.heatmap_data = []
        self.build_heatmap(heatmap_data, heatmap_layer)
def __init__ ( self , identifier , # type: str lat , # type: float lng , # type: float zoom = 13 , # type: int maptype = "ROADMAP" , # type: str markers = None , # type: Optional[Union[Dict, List, Tuple]] varname = "map" , # type: str style = "height:300px;width:300px;margin:0;" , # type: str cls = "map" , # type: str language = "en" , # type: str region = "US" , # type: str rectangles = None , # type: Optional[List[Union[List, Tuple, Tuple[Tuple], Dict]]] circles = None , # type: Optional[List[Union[List, Tuple, Dict]]] polylines = None , # type: Optional[List[Union[List, Tuple, Dict]]] polygons = None , # type: Optional[List[Union[List, Tuple, Dict]]] zoom_control = True , # type: bool maptype_control = True , # type: bool scale_control = True , # type: bool streetview_control = True , # type: bool rotate_control = True , # type: bool scroll_wheel = True , # type: bool fullscreen_control = True , # type: bool collapsible = False , # type: bool mapdisplay = False , # type: bool cluster = False , # type: bool cluster_imagepath = DEFAULT_CLUSTER_IMAGE_PATH , # type: str cluster_gridsize = 60 , # type: int fit_markers_to_bounds = False , # type: bool center_on_user_location = False , # type: bool report_markerClickpos = False , # type: bool report_clickpos = False , # type: bool markerClickpos_uri = "" , # type: str clickpos_uri = "" , # type: str styles = "" , layer = "" , map_ids = None , bicycle_layer = False , heatmap_data = None , heatmap_layer = False , * * kwargs ) : # type: (...) -> None self . cls = cls self . style = style self . language = language self . region = region self . varname = varname self . center = self . verify_lat_lng_coordinates ( lat , lng ) self . zoom = zoom self . maptype = maptype self . markers = [ ] # type: List[Any] self . map_ids = map_ids self . build_markers ( markers ) self . rectangles = [ ] # type: List[Any] self . build_rectangles ( rectangles ) self . circles = [ ] # type: List[Any] self . build_circles ( circles ) self . polylines = [ ] # type: List[Any] self . build_polylines ( polylines ) self . polygons = [ ] # type: List[Any] self . build_polygons ( polygons ) self . identifier = identifier self . zoom_control = zoom_control self . maptype_control = maptype_control self . scale_control = scale_control self . streetview_control = streetview_control self . rotate_control = rotate_control self . scroll_wheel = scroll_wheel self . fullscreen_control = fullscreen_control self . collapsible = collapsible self . mapdisplay = mapdisplay self . center_on_user_location = center_on_user_location self . report_clickpos = report_clickpos self . clickpos_uri = clickpos_uri self . report_markerClickpos = report_markerClickpos self . markerClickpos_uri = markerClickpos_uri self . cluster = cluster self . cluster_imagepath = cluster_imagepath self . cluster_gridsize = cluster_gridsize self . fit_markers_to_bounds = fit_markers_to_bounds self . styles = styles self . layer = layer self . bicycle_layer = bicycle_layer self . heatmap_layer = heatmap_layer self . heatmap_data = [ ] self . build_heatmap ( heatmap_data , heatmap_layer )