Skip to content

[Bug] GLWindow.ZoomToMap() is missing positional argument 'layers' #4878

@echoix

Description

@echoix

Describe the bug

Error occurs when clicking on a first (vector) layer from the data tab. No problem right clicking a layer in the layers box and clicking Zoom to layer.

To reproduce

  1. Change 2D view to 3D view in the Map Display
  2. Double click on a layer from the data tab
    image
  3. See error in console tab

Expected behavior

Screenshots

image

System description

  • Operating System: Windows 11 24H226100.2605

  • GRASS GIS version: 8.5.0dev, from osgeo4w grass-dev 429 grass-dev-8.5-429-d6dec75dd-1 for commit d6dec75
    Originally found on Ubuntu 22.04 through WSL on the same windows computer, compiled from source, python 3.12.7, wxPython 4.2.2 too.

  • details about further software components

    • run g.version -rge in a GRASS GIS terminal session or check in
      the GUI menu "Help > About"
    • run python3 -c "import sys, wx; print(sys.version); print(wx.version())"
      to print the Python and wxPython version numbers
(Mon Dec 23 19:11:37 2024) Command finished (1 sec)                             
System Info                                                                     
GRASS version: 8.5.0dev                                                         
Code revision: d6dec75dd                                                        
Build date: 2024-12-23                                                          
Build platform: x86_64-w64-mingw32                                              
GDAL: 3.9.3                                                                     
PROJ: 9.5.0                                                                     
GEOS: 3.13.0                                                                    
SQLite: 3.46.1                                                                  
Python: 3.12.8                                                                  
wxPython: 4.2.2                                                                 
Platform: Windows-11-10.0.26100-SP0 (OSGeo4W)    

Additional context

I have a solution, to make the layer argument optional, and it works here.

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