I am trying to generate sets of Leaflet maps from a large database with global data. However, I also would like these maps to be Pacific-centered. As it stands, I can move the projection by setting the view and setting WorldCopyJump to True, but what this means is that it loads every data point depending on where the center is (so I can never get a true Pacific-centered view that shows everything).
I am generating this with the Leaflet package in R, but I can modify the JavaScript directly if need be. A code snippet, but without data:
map <- #some giant map
pal <- colorFactor(palette = 'Set1', domain = map$Value)
general_map <- map %>%
leaflet(options=leafletOptions(worldCopyJump = TRUE)) %>%
addProviderTiles("Esri.WorldGrayCanvas") %>%
addCircleMarkers(
lng = ~Longitude, lat = ~Latitude,
radius = 4,
color = ~pal(Value)) %>%
setView(-180, 0, zoom=2)
Is there some way to do this so that I get a "true" Pacific centered map where I see all the data on both sides of the ocean at once?