Kyle Walker

Results 96 comments of Kyle Walker

Example usage: ```r library(shiny) library(bslib) library(colourpicker) library(dplyr) library(sf) library(shinyWidgets) devtools::load_all() ui set_filter( "polygon_layer", c("in", "CNTY_ID", ids) ) }) } shinyApp(ui, server) ```

Ah, good catch. The challenge of maintaining a huge codebase. I'm partial to `layer_id`, I'll get that fixed (or take a PR).

Absolutely! Use `add_draw_control()`. ```r maplibre() |> add_draw_control() ``` ![Image](https://github.com/user-attachments/assets/44130330-dc2b-4b45-a54e-d67768a19848) That said - I don't have support for perfect rectangles through click-and-drag; right now there are two polygon modes supported, vertex-by-vertex...

I see. The way this sort of functionality gets added to Mapbox / MapLibre is via custom "modes" which are typically installed via node (see https://github.com/mapbox/mapbox-gl-draw/blob/main/docs/MODES.md#available-custom-modes). That doesn't really work...

this is now implemented, try it out with `rectangle = TRUE`!

Yes, it's probably government shutdown-related, unfortunately.

So, I _think_ this is still a bug but there are ways you can get what you want without getting the bug fixed. Typically with mapgl, you want to keep...

You're observing an issue with `fit_bounds()` in Globe view for features that cross the antimeridian. Perhaps you could code in some Alaska-specific fly-to logic, where you use `fly_to()` to fly...

I think all of those will be possible at some point. The `compare()` function (tracking in #1) does sync maps, but doesn't show them side-by-side; I'll probably try at some...

Thanks! I like the look of `capture()`. I wonder if something similar to this could be integrated into the package with a print button.