orgmap.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:getorg 作者: getorg 项目源码 文件源码
def create_map_obj(center = [30,5], zoom = 2):
    """
    Creates a new ipyleaflet map object that defaults to a view of the entire world.
    Can specify center
    """

    if leaflet_enabled is False:
        return "IPywidgets and ipyleaflet support disabled."
    else:
        m = Map(default_tiles=TileLayer(opacity=1.0), center=center, zoom=zoom, layout=ipywidgets.Layout(height="600px"))
        return m
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号