static void HandlePrepareCacheCallback(MapLayerID inlayer, float *inTotalMapBoundsLeftTopRightBottom, MapProjectionID projection, void *inrefcon) { ref readonly RectF bounds = ref Unsafe.AsRef <RectF>((RectF *)inTotalMapBoundsLeftTopRightBottom);
static void HandleWillBeDeletedCallback(MapLayerID inlayer, void *inrefcon) => Utils.TryGetObject <MapLayer>(inrefcon)?.HandleWillBeDeleted();