Skip to content

Impossible to set map bounds *and* pitch, bearing, etc #116

Description

@JosiahParry

Using initial_view_state with view_state() one get adjust the way that their map looks allowing them to change the pitch and bearing. This is particularly handy for 3D / extruded shapes. However, view_state() does not let you specify a starting bound only a starting center point.

The initial bounds should only conflict with the center argument of view_state() not all others.

This would save one from doing:

view_state(
    center = {  
      sf::st_bbox(geoms) |> 
      sf::st_as_sfc() |>  
      sf::st_centroid() 
  }[[1]]
)

Activity

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

    featureNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions