I just noticed that the vscode intelljsense does not autocomplate for _controlPositions of Map class and found out it is due to that it is defined as Record<string, HTMLElement>, is that intentionally? Or typed incorrectly since _controlPositions cannot be positioned other than what the ControlPosition type is
I just noticed that the vscode intelljsense does not autocomplate for
_controlPositions
ofMap
class and found out it is due to that it is defined asRecord<string, HTMLElement>
, is that intentionally? Or typed incorrectly since_controlPositions
cannot be positioned other than what the ControlPosition type ishttps://github.com/maplibre/maplibre-gl-js/blob/160b8f9c3feb0c44c7ab233d4cedaac569236e0b/src/ui/map.ts#L448
I fix the type locally and get the nitelljsense working fine as in the following screenshot: