length measurement, update mapbbcode