TrackIt
TrackIt copied to clipboard
keplergl dependency on deprecated pkg_resources causes missing base map in HTML output
GoTrackIt uses keplergl to generate interactive map visualizations as HTML files. However, the latest version of keplergl (v0.3.7) depends on the deprecated pkg_resources package, which is now raising warnings:
C:\Users\xxx\GoTrackIt\.venv\Lib\site-packages\keplergl\keplergl.py:13: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin with Setuptools<81.
from pkg_resources import resource_string
This issue appears to be related to https://github.com/keplergl/kepler.gl/issues/3158, and results in saved HTML files missing the base map.
Thank you, I will deal with it in the near future. You can use a lower version of keplergl first.
Kepler.gl 0.3.7 将底层地图框架从 Mapbox 完全更换为 Maplibre。不同主题对应的配置路径发生变化,config["mapStyle"]["styleType"]现在支持:
- dark-matter
- positron
- voyager
修改以下源码文件对应的默认参数即可: