          });
  
          // Initialize the draw interaction
          let geomType = this.options.geom_name;
          if (geomType === "Unknown" || geomType === "GeometryCollection") {
              // Default to Point, but create icons to switch type
              geomType = "Point";
              this.currentGeometryType = new GeometryTypeControl({widget: this, type: "Point", active: true});
              this.map.addControl(this.currentGeometryType);
              this.map.addControl(new GeometryTypeControl({widget: this, type: "LineString", active: false}));
 
</s> remove             'geom_type': gdal.OGRGeomType(self.attrs['geom_type']),
 </s> add             'geom_type': 'Geometry' if geom_type == 'Unknown' else geom_type,
        if (geomType === "Geometry" || geomType === "GeometryCollection") {
          });
  
          // Initialize the draw interaction
          let geomType = this.options.geom_name;
        if (geomType === "Geometry" || geomType === "GeometryCollection") {
              // Default to Point, but create icons to switch type
              geomType = "Point";
              this.currentGeometryType = new GeometryTypeControl({widget: this, type: "Point", active: true});
              this.map.addControl(this.currentGeometryType);
              this.map.addControl(new GeometryTypeControl({widget: this, type: "LineString", active: false}));
keep keep keep keep replace keep keep keep keep keep
 Fixed #21021 -- Changed BaseGeometryWidget's default geometry type to 'Geometry'. 
django/contrib/gis/static/gis/js/OLMapWidget.js