Creates an interactive map using leaflet, showing polygons with popup information.
plot_zones_interactive(
polygons,
coastline,
title,
colors,
show_legend = TRUE,
labels = NULL,
base_layers = TRUE,
minimap = TRUE
)
A leaflet object with the interactive map.
List of polygons. Each must have fields such as coords, announcement, dates and coordinates.
Data frame with the coastline (columns Long and Lat).
Title to display at the top of the map.
Vector of colors. If NULL, they are automatically assigned with RColorBrewer::brewer.pal.
Logical. If TRUE, the layers control (legend) is displayed.
Optional vector of names to display in the legend and map labels.
Logical. If TRUE, includes base layers such as satellite and ocean maps.
Logical. If TRUE, displays a minimap in the lower right corner.