小编gge*_*oge的帖子

folium 自定义地图图块

我想将此地图图块图层添加到我的地图 - Stamen toner-background。正如我在文档中阅读的那样,我需要在地图的tiles 属性中简单地提供自定义网址

mapa = folium.Map(width=1000, height=700, zoom_start=5.5,
              location=[52.5, 19], tiles='http://maps.stamen.com/toner-background/embed#6/{x}/{z}', attr="toner-bcg")
Run Code Online (Sandbox Code Playgroud)

它加载但没有显示任何内容。

我真的不知道这种归因是如何运作的,我应该怎么做。我喜欢这种瓷砖,因为它就像雄蕊调色剂,但没有国名,这使我的地图更漂亮。

leaflet stamen-maps folium

5
推荐指数
1
解决办法
4972
查看次数

GHC 8.8.4 无法建议添加 hashable,即使它已经添加

我编写了一个程序,利用库Hashset中的unordered-containers。它在我的 GHC 9.2.4 计算机上运行良好。由于某些原因,我正尝试将其移植到标题中提到的 GHC 8.8.4。它主要归结为添加一些语言扩展。

\n

不过我遇到了一个奇怪的问题。

\n

我有一个功能powerset :: Hashable a => Set a -> [Set a]

\n

编译时我收到以下错误:

\n
Could not deduce (hashable-1.3.0.0:Data.Hashable.Class.Hashable\n                          a)\n        arising from a use of \xe2\x80\x98makeSubset\xe2\x80\x99\n      from the context: Hashable a\n        bound by the type signature for:\n                   powerset :: forall a. Hashable a => Set a -> [Set a]\n        at Automaton.hs:48:1-45\n      Possible fix:\n        add (hashable-1.3.0.0:Data.Hashable.Class.Hashable\n               a) to the context of\n          the type signature for:\n            powerset :: forall …
Run Code Online (Sandbox Code Playgroud)

haskell ghc cabal

1
推荐指数
1
解决办法
78
查看次数

标签 统计

cabal ×1

folium ×1

ghc ×1

haskell ×1

leaflet ×1

stamen-maps ×1