Skip to content

Add Control Grid works in VSCode window but is not displayed in html file #184

Description

@pd-allen

Environment Information

  • anymap version: 0.17.2
  • Python version: 3.10.20
  • Operating System: Win 10

Description

Use the command add_cntrol_grid. It is displayed properly in VSCode window but not present in html. This function had worked previously. Ran the code in an new conda env and on Google colab with the same results.

What I Did

from anymap_ts import MapLibreMap

controls = {"navigation": True, "layer-control": True,"control-grid":True}
centerval = [0.7106, 52.0685]
zoomval = 5.0
m = MapLibreMap(
    centerval, 
    zoom=zoomval, 
    controls=controls,
    
    style="https://basemaps.cartocdn.com/gl/positron-nolabels-gl-style/style.json"
)
#m.add_control_grid()
m.to_html("historical_map.html")

m

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions