mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

mapboxgl.LngLatBounds.extend does not seem to fully implement LngLatLike as parameter.

Open svenvandescheur opened this issue 1 year ago • 0 comments

mapbox-gl-js version: 2.9.2 browser: Chrome

Steps to Trigger Behavior

  1. Initialize bounds: const bounds = new mapboxgl.LngLatBounds()
  2. Extend using LngLatLike based v2 (number Array), works.
  3. Extend using LngLatLike based v3 (Object), does not work (no exception raided just no update).

Link to Demonstration

I've been unable to create an online demo due to time constraints, might update issue later.

Expected Behavior

I expect the extend function to work with all version of the LngLatLike interface.

Actual Behavior

No update seems to be perfomred on the LngLatBounds.

svenvandescheur avatar Jul 18 '22 16:07 svenvandescheur