Implemented the tilemapMargin option.