Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
7503ca7
updated setup.cfg
Aug 13, 2021
95a5f5a
Bump version 1.1.1 -> 1.1.2
Aug 19, 2021
09a03c4
alignment and basemap to tiles minor changes
Aug 20, 2021
bf8e476
updated docs
Aug 23, 2021
2ac7550
updated changelog
Aug 24, 2021
f5402f0
black formatted notebooks
Sep 2, 2021
1998188
colab
Sep 27, 2021
6f9b390
fixed hover issue
Sep 27, 2021
9419567
save map to html file
Oct 21, 2021
a498d34
Bump version 1.1.2 -> 1.1.3
Oct 25, 2021
739b445
Updated related projects in readme
sackh Oct 27, 2021
6af7af8
Fixed typo and minor wording.
Oct 28, 2021
7a57b74
Make Python 12 and Jupyter Lab 4.1.8 compatible
kt12321 May 15, 2024
1caee5a
PySDK compatible
kt12321 May 21, 2024
90579b1
v2.0.0
kt12321 May 21, 2024
1a70b23
Fix version number
kt12321 May 21, 2024
75aa8c4
Migration from jupyter-widget 7.x to 8.x and from jupyter-packaging t…
kt12321 May 22, 2024
1916fad
Make Python 12 and Jupyter Lab 4.1.8 compatible
kt12321 May 15, 2024
8678e23
PySDK compatible
kt12321 May 21, 2024
812cedb
v2.0.0
kt12321 May 21, 2024
03f6307
Fix version number
kt12321 May 21, 2024
aff2bd2
ci: merge the latest changes from master
kt12321 May 21, 2025
e394813
ci: use .npmrc instead of .yarnrc.yml
kt12321 May 22, 2025
f920331
ci: remove sensitive data
kt12321 May 22, 2025
7e947d5
fix: Fix incorrect additional parameters handling for MapTile
kt12321 May 22, 2025
1579fa8
ci: few modifications for post process
kt12321 May 30, 2025
fb30f26
ci: fix a keyword in .ort.yml
kt12321 Jun 17, 2025
8349d9f
Bug fix for feature support HARP engine
kekishida2 Jun 18, 2025
e492747
Feature support harp engine (#42)
kekishida2 May 21, 2025
b7c76f2
Update binder.yml
kekishida2 May 21, 2025
283b28b
Update binder.yml
kekishida2 May 21, 2025
04ba050
Add yarn.lock to support Yarn 4 immutable installs
kekishida2 May 22, 2025
92dcdef
add .npmrc
kekishida2 May 22, 2025
2dfa576
Align yarn version
kekishida2 May 22, 2025
04de33f
Modify .yarnrc.yml
kekishida2 May 22, 2025
62139da
add events polyfill (2)
kekishida2 May 22, 2025
3e31651
add events polyfill (3)
kekishida2 May 22, 2025
7ca4ad6
add events polyfill (4)
kekishida2 May 22, 2025
63baf42
add events polyfill (5)
kekishida2 May 23, 2025
479b4bf
add events polyfill (6)
kekishida2 May 23, 2025
4694e5a
add events polyfill (7)
kekishida2 May 23, 2025
1dfa09e
ci: resolve yarn.lock issue
kt12321 Jun 20, 2025
5b1ddc8
Merge branch 'master' into migration-from-jupyter-widget-7.x-to-8.x-a…
kt12321 Jun 20, 2025
b1b46d2
ci: fix HERE Repository URL
kt12321 Jun 20, 2025
e408560
ci: use yarn 1.x
kt12321 Jun 24, 2025
1d014a2
ci: fix conda path
kt12321 Jun 27, 2025
aaa4379
ci: fix copy to nbextensions
kt12321 Jun 27, 2025
e5e23a9
ci: fix license descriptions in toml file
kt12321 Jun 27, 2025
dd93582
ci: use hatch to build distribution packages
kt12321 Jun 30, 2025
db24e7e
Merge branch 'migration-from-jupyter-widget-7.x-to-8.x-and-from-jupyt…
kt12321 Jun 30, 2025
73fb44f
ci: update dependencies
kt12321 Jun 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.12]
yarn-version: [1.22.22]

steps:
- uses: actions/checkout@v2
Expand All @@ -29,21 +30,22 @@ jobs:
uses: conda-incubator/setup-miniconda@v3
with:
mamba-version: "*"
channels: conda-forge
channels: conda-forge,defaults

- name: Mamba install dependencies
run: mamba install python=${{ matrix.python-version }} pip nodejs jupyter-packaging
run: mamba install python=${{ matrix.python-version }} pip nodejs yarn=${{ matrix.yarn-version }}

- name: Mamba install JupyterLab 3
run: mamba install jupyterlab=3.5 ipywidgets=7.6
- name: Mamba install JupyterLab 4
run: mamba install jupyterlab=4.4.3 ipywidgets=8.1.7

- name: Install here-map-widget-for-jupyter
run: |
npm config set @here:registry https://repo.platform.here.com/artifactory/api/npm/here-node/
npm config set @here:registry https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript
pip install .[dev]

- name: Check installation files
run: |
echo "CONDA_PREFIX=$CONDA_PREFIX"
test -d $CONDA_PREFIX/share/jupyter/nbextensions/@here/map-widget-for-jupyter
test -f $CONDA_PREFIX/share/jupyter/nbextensions/@here/map-widget-for-jupyter/extension.js
test -f $CONDA_PREFIX/share/jupyter/nbextensions/@here/map-widget-for-jupyter/index.js
Expand All @@ -59,7 +61,8 @@ jobs:
- name: Build the package (Only on Linux for saving time)
if: matrix.os == 'ubuntu-latest'
run: |
python setup.py sdist bdist_wheel
pip install hatch
hatch build

- name: Build docs (Only on Linux for saving time)
if: matrix.os == 'ubuntu-latest'
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
matrix:
os: [ubuntu-latest]
python-version: [3.12]
yarn-version: [1.22.22]
steps:
- uses: actions/checkout@v2

Expand All @@ -26,10 +27,10 @@ jobs:
channels: conda-forge

- name: Mamba install dependencies
run: mamba install python=${{ matrix.python-version }} pip nodejs yarn jupyter-packaging
run: mamba install python=${{ matrix.python-version }} pip nodejs yarn=${{ matrix.yarn-version }}

- name: Mamba install JupyterLab 3
run: mamba install jupyterlab=3.5 ipywidgets=7.6
- name: Mamba install JupyterLab 4
run: mamba install jupyterlab=4.4.3 ipywidgets=8.1.7

- name: Install tools
run: |
Expand All @@ -40,9 +41,10 @@ jobs:
node --version
npm --version
yarn --version
npm config set @here:registry https://repo.platform.here.com/artifactory/api/npm/here-node/
npm config set @here:registry https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript
pip install .
python setup.py sdist bdist_wheel
pip install hatch
hatch build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
Expand All @@ -56,10 +58,10 @@ jobs:
- name: Publish to NPM
run: |
cd js
npm config set @here:registry https://repo.platform.here.com/artifactory/api/npm/here-node/
npm config set @here:registry https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript
npm install --legacy-peer-deps
npm run build
npm config delete @here:registry https://repo.platform.here.com/artifactory/api/npm/here-node/
npm config delete @here:registry https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
npm publish --access=public
env:
Expand Down
23 changes: 12 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
*.egg-info/
.ipynb_checkpoints/
dist/
build/
*.py[cod]
node_modules/
.idea/
.vscode/
build/
*.py[cod]
src/*
venv/

# Compiled javascript
here_map_widget/static/
src/*
*package-lock.json
here_map_widget/nbextension/
here_map_widget/labextension/

# OS X
.DS_Store
venv

# Compiled javascript
here_map_widget/nbextension/
here_map_widget/labextension/
# Source javascript
js/.yarn/
js/dist/
yarn.lock
js/node_modules/
js/.npmrc
js/.yarnrc
js/yarn.lock
2 changes: 1 addition & 1 deletion .ort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ excludes:
reason: "DOCUMENTATION_OF"
comment: "Directory is only used for generating documentation for gitlab pages."
scopes:
- name: "devDependencies"
- pattern: "devDependencies"
reason: "DEV_DEPENDENCY_OF"
comment: "Packages for development only."
13 changes: 0 additions & 13 deletions MANIFEST.in

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Below extra commands are required only if you are using classic Jupyter Notebook

Below extra commands are required only if you are using JupyterLab (version 2 or older):

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

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

Expand All @@ -81,7 +81,7 @@ Below extra commands are required only if you are using JupyterLab (version 2 or

For a development installation (requires yarn, you can install it with `conda install -c conda-forge yarn`):

$ npm config set @here:registry https://repo.platform.here.com/artifactory/api/npm/here-node/
$ npm config set @here:registry https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript
$ git clone https://github.com/heremaps/here-map-widget-for-jupyter.git
$ cd here-map-widget-for-jupyter
$ pip install -e .
Expand Down
3 changes: 2 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ This document describes the release process of here-map-widget-for-jupyter, and

The following are mandatory pre-release steps to bring the repository into a proper shape:

- Update version in [here_map_widget/_version.py](here_map_widget/_version.py) as desired.
- Update versions in [pyproject.toml](pyproject.toml)
- Update versions in [here_map_widget/_version.py](here_map_widget/_version.py) as desired.
- Update [js/package.json](js/package.json) with new npm package version.
- Make sure all tests listed in `CONTRIBUTING.md` pass successfully.
- Make sure badges appear as expected in the [README.md on GitHub](https://github.com/heremaps/here-map-widget-for-jupyter/blob/master/README.md).
Expand Down
8 changes: 3 additions & 5 deletions examples/basemaps.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"from here_map_widget import Map, Platform, MapTile, TileLayer\n",
Expand Down Expand Up @@ -259,7 +257,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -273,7 +271,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
"version": "3.13.1"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions here_map_widget/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""Project version information."""

# Module version
version_info = (1, 1, 3)
version_info = (2, 0, 0)

# Module version accessible using here_map_widget.__version__
__version__ = "%s.%s.%s" % (
Expand All @@ -13,4 +13,4 @@
version_info[2],
)

EXTENSION_VERSION = "^1.1.3"
EXTENSION_VERSION = "^2.0.0"
9 changes: 8 additions & 1 deletion js/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,12 @@
*/

{
"plugins": ["transform-object-rest-spread"]
"presets": [
["env", {
"targets": {
"node": "current"
}
}]
],
"plugins": ["@babel/plugin-proposal-object-rest-spread"]
}
4 changes: 0 additions & 4 deletions js/.yarnrc.yml

This file was deleted.

4 changes: 2 additions & 2 deletions js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Package Install
- [node](http://nodejs.org/)

```bash
npm config set @here:registry https://repo.platform.here.com/artifactory/api/npm/here-node/
npm config set @here:registry https://repo.platform.here.com/artifactory/api/npm/maps-api-for-javascript

npm install --save @here/map-widget-for-jupyter
yarn add @here/map-widget-for-jupyter
```
8 changes: 4 additions & 4 deletions js/lib/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,17 +449,17 @@ export class MapView extends widgets.DOMWidgetView {
);
}

processPhosphorMessage(msg) {
super.processPhosphorMessage(msg);
processLuminoMessage(msg) {
super.processLuminoMessage(msg);
switch (msg.type) {
case 'resize':
console.log('Phosphor resize');
console.log('Lumino resize');
if (this.obj) {
this.obj.getViewPort().resize();
}
break;
case 'after-show':
console.log('Phosphor after-show');
console.log('Lumino after-show');
this.obj.getViewPort().resize();
break;
}
Expand Down
4 changes: 2 additions & 2 deletions js/lib/control/FullscreenControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
const control = require('./Control.js');
const widgets = require('@jupyter-widgets/base');
const _ = require('lodash');
const PMessaging = require('@phosphor/messaging');
const PWidgets = require('@phosphor/widgets');
const LMessaging = require('@lumino/messaging');
const LWidgets = require('@lumino/widgets');

class FullscreenControl extends H.ui.Control {
constructor(map_view) {
Expand Down
4 changes: 2 additions & 2 deletions js/lib/control/SearchControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
const control = require('./Control.js');
const widgets = require('@jupyter-widgets/base');
const _ = require('lodash');
const PMessaging = require('@phosphor/messaging');
const PWidgets = require('@phosphor/widgets');
const LMessaging = require('@lumino/messaging');
const LWidgets = require('@lumino/widgets');
var centroid = require("@turf/centroid");
var helpers = require("@turf/helpers");

Expand Down
4 changes: 2 additions & 2 deletions js/lib/control/SplitMapControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
const control = require('./Control.js');
const widgets = require('@jupyter-widgets/base');
const _ = require('lodash');
const PMessaging = require('@phosphor/messaging');
const PWidgets = require('@phosphor/widgets');
const LMessaging = require('@lumino/messaging');
const LWidgets = require('@lumino/widgets');
const Map = require('../Map');
class SplitMapControl extends H.ui.Control {
constructor(map_view, leftLayer, rightLayer, left_map, right_map, left_container, right_container) {
Expand Down
12 changes: 6 additions & 6 deletions js/lib/control/WidgetControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
const control = require('./Control.js');
const widgets = require('@jupyter-widgets/base');
const _ = require('lodash');
const PMessaging = require('@phosphor/messaging');
const PWidgets = require('@phosphor/widgets');
const LMessaging = require('@lumino/messaging');
const LWidgets = require('@lumino/widgets');

class WidgetControl extends H.ui.Control {
constructor(opts) {
Expand Down Expand Up @@ -75,14 +75,14 @@ export class WidgetControlView extends control.ControlView {
this.displayed.then(() => {
this.widget_view.trigger('displayed', this);
this.widget_view.displayed.then(() => {
PMessaging.MessageLoop.sendMessage(
LMessaging.MessageLoop.sendMessage(
view.pWidget,
PWidgets.Widget.Msg.BeforeAttach
LWidgets.Widget.Msg.BeforeAttach
);
this.obj.setContent(view.el);
PMessaging.MessageLoop.sendMessage(
LMessaging.MessageLoop.sendMessage(
view.pWidget,
PWidgets.Widget.Msg.AfterAttach
LWidgets.Widget.Msg.AfterAttach
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion js/lib/provider/MapTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class MapTileView extends provider.ProviderView {
var format = this.model.get('format');
var options = {}
if (this.model.get('additional_params')) {
options['additionalParameters'] = this.model.get('additional_params');
Object.assign(options, this.model.get('additional_params'));
}
this.obj = mapTiler.createTileProvider(TileType, scheme, TileSize, format, options);
});
Expand Down
2 changes: 1 addition & 1 deletion js/lib/provider/OMV.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class OMVView extends provider.ProviderView {
const style_view = result[1];
const engineType = H.Map.EngineType["HARP"];
const platform = pltform_view !== null ? pltform_view.obj : null;
const config = style_view !== null ? style_view.obj.po : null;
const config = style_view !== null ? style_view.model.get('config') : null;
const st = new H.map.render.harp.Style(config);
var omvService = platform.getOMVService({
path: this.model.get('path')
Expand Down
Loading
Loading