R/tmapLeafletShape.R

Defines functions tmapLeafletOverlay tmapLeafletShape

tmapLeafletShape = function(bbx, facet_row, facet_col, facet_page, o) {
	bbx = unname(bbx)
	if (!.TMAP$proxy) {
		get_lf(facet_row, facet_col, facet_page) %>%
			leaflet::fitBounds(bbx[1], bbx[2], bbx[3], bbx[4]) %>%
			view_set_bounds(bbx, o) %>%
			assign_lf(facet_row, facet_col, facet_page)
	}
	NULL
}

tmapLeafletOverlay = function(bbx, facet_row, facet_col, facet_page, o) {
	NULL
}

Try the tmap package in your browser

Any scripts or data that you put into this service are public.

tmap documentation built on April 4, 2025, 2:05 a.m.