private static GeoPrimitive polygonAround(final Geopoint center, final float distance, final int color) {
        final Geopoint start = center.project(0, distance / 2).project(270, distance / 2);
        return GeoPrimitive.builder().setType(GeoItem.GeoType.POLYLINE).addPoints(
                start,
                start.project(90, distance),
                start.project(90, distance).project(180, distance),
                start.project(180, distance),
                start).setStyle(GeoStyle.builder().setStrokeColor(color).build()).build();
    }
This is a test layer to experiment with unified geoitem layers. It is only activated with a specific developer setting
main/src/main/java/cgeo/geocaching/unifiedmap/geoitemlayer/GeoItemTestLayer.java