Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

LatLngBounds with one point #9953

Closed

Description

@Etienne-io

**Platform: Android **
Mapbox SDK version: 5.1.3

Create a LatLngBounds with one point trigger an exception (Cannot create a LatLngBounds with one position)

Create a LatLngBounds with two point with same coordinates works.

It should be considered to let user creates a bounds including only one point or improve the exception behavior. #

Activity

  1. added this to the android-v5.1.4 milestone on Sep 11, 2017
  2. tobrun commented on Sep 11, 2017

    @tobrun
    Member

    @emerciercontexeo could you elaborate on a use-case where you want a bounds represented as a single point? You are correct that current behaviour allows duplicating points, we should ignore adding such points to the bounds.

  3. added
    Android
    on Sep 11, 2017
  4. Etienne-io commented on Sep 11, 2017

    @Etienne-io
    Author

    There is no really use-case. I tested this morning to see how the camera will be set with one point in bounds and I found this behavior.

    It was priceless to share it with you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Androidbug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions