跳转到主要内容

一个插件,允许您在Jupyter Notebook中使用HERE Maps API for JavaScript。

项目描述

HERE Map Widget for Jupyter

Tests PyPI - Status PyPI - Python Version PyPI - Python Version PyPI - License Downloads Conda (channel only) Conda Downloads Anaconda-Server Badge Binder

在您的Jupyter Notebook中使用HERE Maps API for JavaScript

用法

选择基本地图

Select base map

在地图上加载GeoJSON数据

Use GeoJSON on map

使用例如Marker的JavaScript基本API来在地图上绘制SVG图标

Add marker to map

使用搜索控件搜索GeoJSON层数据

Add search control to map

在地图上显示GeoPandas数据

Add Geopandas data to map

在地图上显示XYZ HubHERE Data Hub空间数据

Add XYZ data to map

使用ipywidgets控件构建交互式GUI

Add ipywidgets controls

选择外部基本地图

Select external basemap

先决条件

在您安装此软件包或使用示例笔记本之前,请确保您的系统满足以下先决条件

安装

使用以下命令从 Anaconda conda-forge 频道 使用 conda 安装 HERE Map Widget for Jupyter

$ conda install -c conda-forge here-map-widget-for-jupyter

使用以下命令从 PyPI 安装 HERE Map Widget for Jupyter

$ pip install here-map-widget-for-jupyter

以下额外命令仅适用于您使用经典 Jupyter Notebook(版本 5.3 或更早)的情况

$ jupyter nbextension install --py --sys-prefix here_map_widget

$ jupyter nbextension enable here_map_widget --py --sys-prefix

以下额外命令仅适用于您使用 JupyterLab(版本 2 或更早)的情况

$ npm config set @here:registry https://repo.platform.here.com/artifactory/api/npm/here-node/

$ jupyter labextension install @jupyter-widgets/jupyterlab-manager @here/map-widget-for-jupyter

从 GitHub 源存储库安装

对于开发安装(需要 yarn,您可以使用 conda install -c conda-forge yarn 安装它)

$ npm config set @here:registry https://repo.platform.here.com/artifactory/api/npm/here-node/
$ git clone https://github.com/heremaps/here-map-widget-for-jupyter.git
$ cd here-map-widget-for-jupyter
$ pip install -e .

如果您使用的是经典 Jupyter Notebook,则需要安装 nbextension

$ jupyter nbextension install --py --sys-prefix here_map_widget

$ jupyter nbextension enable here_map_widget --py --sys-prefix

开发人员注意

  • -e pip 选项允许用户就地修改 Python 代码。重启内核以查看更改。
  • Linux 或 OS X 上的 --symlink 参数允许用户就地修改 JavaScript 代码。此功能在 Windows 上不可用。

使用 JupyterLab 进行开发

$ jupyter labextension develop --overwrite here_map_widget

文档

文档可在 此处 获取

相关项目

以下项目使用 here-map-widget-for-jupyter 作为绘图后端

许可证

版权所有 (C) 2019-2021 HERE Europe B.V.

除非特定目录的 LICENSE 文件中另有说明,否则根目录中的 LICENSE 适用于此存储库中的所有内容。

项目详情


下载文件

下载您平台上的文件。如果您不确定选择哪个,请了解更多关于 安装软件包 的信息。

源分发

here-map-widget-for-jupyter-1.1.3.tar.gz (19.8 MB 查看哈希

上传时间

构建分发

here_map_widget_for_jupyter-1.1.3-py2.py3-none-any.whl (5.4 MB 查看哈希

上传时间 Python 2 Python 3

支持