TrackIt icon indicating copy to clipboard operation
TrackIt copied to clipboard

keplergl dependency on deprecated pkg_resources causes missing base map in HTML output

Open ykangw opened this issue 7 months ago • 2 comments

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.

ykangw avatar Sep 04 '25 20:09 ykangw

Thank you, I will deal with it in the near future. You can use a lower version of keplergl first.

zdsjjtTLG avatar Sep 08 '25 08:09 zdsjjtTLG

Kepler.gl 0.3.7 将底层地图框架从 Mapbox 完全更换为 Maplibre。不同主题对应的配置路径发生变化,config["mapStyle"]["styleType"]现在支持:

  • dark-matter
  • positron
  • voyager

修改以下源码文件对应的默认参数即可:

Image

zdsjjtTLG avatar Oct 24 '25 03:10 zdsjjtTLG